1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //Ë«»÷¹öÆÁ
- var currentpos, timer;
- function initialize(){
- timer = setInterval("scrollwindow()", 50);
- }
- function sc(){
- clearInterval(timer);
- }
- function scrollwindow(){
- currentpos = document.body.scrollTop;
- window.scroll(0, ++currentpos);
- if (currentpos != document.body.scrollTop)
- sc();
- }
- document.onmousedown = sc
- document.ondblclick = initialize
- var background = new Array;
- background[0]="images/bg.gif";
- background[1]="images/c1.jpg";
- background[2]="images/c2.jpg";
- background[3]="images/c3.gif";
- background[4]="images/c4.gif";
- background[5]="images/c5.gif";
- background[6]="images/c6.gif";
- background[7]="images/c7.gif";
- var dsize=11;
- function reduce()
- {
- dsize--;
- txt.style.cssText='{font-size:'+dsize+'pt;}';
- parent.FontSize=dsize;
- }
- function enlarge()
- {
- dsize++;
- txt.style.cssText='{font-size:'+dsize+'pt;}';
- parent.FontSize=dsize;
- }
-
- function switchschema()
- {
- var i = userbg.selectedIndex;
- parent.schema=i;
- body1.background=background[i];
- }
- function loadchapter()
- {
- var i=parent.schema;
- if(i!=null)
- {
- body1.background =background[i];
- userbg.selectedIndex=i;
- }
- if(parent.FontSize!=null)
- {
- var pat=/[0-9]+/gi;
- if(pat.exec(parent.FontSize))
- {
- dsize=parent.FontSize;
- txt.style.cssText='{font-size:'+dsize+'pt;}';
- }
- }
- }
|