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>

Recommended Answers

All 2 Replies

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).

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.