0

Hello, Im trying to get my custom website screensaver to open in full window mode but I keep failing, I cant work out why? Do I need a new function in the code to do that?
Please help if possible.

Seen some odd codes in Javascript? :)

<script>
<!--
function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars=no")
}
//-->
</script>

<script language="JavaScript">
<!--
Timeout=180000 // 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://inny.ipbfree.com/index.php?act=Attach&type=post&id=5413",'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>
2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by Inny
0

function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars=no")
}

That option list should be "fullscreen=yes,scrollbars=no" but you need to be aware that most non-IE browsers will [by default, mirabile dictu] prevent such a window from opening (and the indication that it has done so may be subtle enough that the user never reoognizes it).

Edited by fxm: n/a

0

Good point! It was a fun project though! Cheers! :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.