|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Javascript help.
Hi guys, I am using this java script to make a page move across the browser, (in a frame set) i was wondering if this script could be changed so that when you mouse over the scrolling page it stops.
---------- <script language="JavaScript1.2"> <!-- var currentpos=0,alt=1,curpos1=0,curpos2=-1 function initialize(){ startit() } function scrollwindow(){ if (document.all) temp=document.body.scrollLeft else temp=window.pageXOffset if (alt==0) alt=1 else alt=0 if (alt==0) curpos1=temp else curpos2=temp if (curpos1!=curpos2){ if (document.all) currentpos=document.body.scrollLeft+2 else currentpos=window.pageXOffset+2 window.scroll(currentpos,0) } else{ currentpos=0 window.scroll(currentpos,0) } } function startit(){ setInterval("scrollwindow()",80) } window.onload=initialize function MM_displayStatusMsg(msgStr) { //v2.0 status=msgStr; document.MM_returnValue = true; } //--> </script> -------------- Can anyone help? |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Javascript help. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|