Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 JavaScript: Variable Speed Horiz Scroll Jump to:  
Category: >> JavaScript >> Variable Speed Horiz Scroll Bookmark and Share

<< lastnext >>

Snippet Name: Variable Speed Horiz Scroll

Description: Nice horizontal scroller with variable scroll speed.

Comment: (none)

Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 28th, 2009

< s c r ipt type="text/javascript">
 
VAR i;
i = 1
 
FUNCTION scr() {
 
 d = document.getElementById("a")
 d.scrollLeft=i
 diff = (d.scrollWidth - d.offsetWidth)
 
 IF(d.scrollLeft == diff) {
 d.scrollLeft = 0
 i = 1
 }
 
 i = i + 1
 window.setTimeout("scr()", 30)
}
</s c r ipt>
 
<div id="a" nowrap style="width:120px;height:20px;overflow:hidden">
 <Table cellspacing='0' cellpadding='0' width=100%>
  <tr>
   <td nowrap>
    <img src="a.gif" width=120px height=1>
     Hello World, I am testing my SCROLL. Right to Left...enjoy!
    <img src="a.gif" width=120px height=1>
   </td>
  </tr>
 </Table>
</div>
 
 
<input type="button" value="go" onClick="scr()">


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 50 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?