-
Static logo script variation - displays after a set period of time
I Quite like the static logo script from dynamicdrive, but really wanted it to display after a certain amount of time rather than disappear, it's as simple as just changing the last two functions and the function to call onload
you can clean it up by changing the variable name "visibleduration" to "invisibleduration", but I left it as is so it's easy to see the change from the original.
... the relevant part of the script is below. hope someone finds this useful!
+++++++
function hidewatermark(){
if (document.layers)
watermark_obj.visibility="hide"
else
watermark_obj.style.visibility="hidden"
if (visibleduration!=0)
setTimeout("beingwatermark()",visibleduration*1000)
}
function beingwatermark(){
watermarkinterval=setInterval("positionit()",50)
insertimage()
if (document.layers)
watermark_obj.visibility="visible"
else
watermark_obj.style.visibility="visible"
//clearInterval(watermarkinterval)
}
if (ie||document.getElementById||document.layers)
window.onload=hidewatermark
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks