| | |
Improvement possible?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
This might be a big ask? can the code simply be improved in any way, sometimes it seems not to work? can it be made cross browser compat?
current code ( onsite screensaver)
current code ( onsite screensaver)
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<script language="JavaScript"> <!-- Timeout=30000 // set delay time for effect Timer="" function oStatic() { clearTimeout(Timer) if(timerRunning == true||blurred==1){ // if win1 opened or opener is blurred, return return } timerRunning = true win1=window.open("http://herproom.5.forumer.com/index.php?act=Attach&type=post&id=7101",'','fullscreen') // if win1 not opened, open win1 Timer=setTimeout("oStatic()",Timeout) // run function oStatic after delay } opened=0 // win1 not opened function oActive(){ // clearTimeout(Timer) if(opened==1){return} // if win1 opened, return timerRunning = false Timer=setTimeout("oStatic()",Timeout) // if win1 not opened run function oStatic after delay } document.onmousemove=oActive // detect mouse movement document.onmousedown=oActive // detect if button pressed document.onkeypress=oActive // detect if key press setTimeout("oActive()",1000) //--> </script> <BODY onblur="blurred='1'" onfocus="blurred='0';oActive()"> <script>document.write(Timeout/1000);</script>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
W. C. Fields
![]() |
Similar Threads
- Speed Improvement? (DaniWeb Community Feedback)
- PHP, ASP, ColdFusion, what's your fav? (IT Professionals' Lounge)
- Macromedia Releases MX (Graphics and Multimedia)
- Fps??? (Troubleshooting Dead Machines)
- windows xp startup (Windows NT / 2000 / XP)
- PROCESSOR TALK (Motherboards, CPUs and RAM)
- suggestions? (Website Reviews)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: get last post & display elsewhere?
- Next Thread: Accessing objects that are not in the form fields
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxexample ajaxjspservlets array automatically beta blackjack boarder box browser captcha captchaformproblem card cart close codes column css date debugger decimal dependent design developer dom download element embed enter error events firefox focus form frameworks game getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe index java javascript javascripthelp2020 javascripts jawascriptruntimeerror jquery jsp libcurl listbox maps marquee masterpage media menu microsoft mimic mp4 onerror onmouseover parameters paypal php player position post problem programming prototype rating redirect safari scale scriptlets search security select size software sources starrating synchronous toggle tweet unicode validation variables w3c webservice window windowofwords xml





