Welcome, Guest. Please login or register.

Login with username, password and session length




December 23, 2024, 02:04:19 AM
Funfani.com - Spreading Fun All Over!INFORMATION CLUBTechnical TipsBackground Previewer
Pages: [1]   Go Down
Print
Author Topic: Background Previewer  (Read 1571 times)
0 Members and 1 Guest are viewing this topic.
Vatsal
Administrator
FF Trailblazer
*****

Karma: 109
Offline Offline

Gender: Male
Posts: 2218



WWW
« on: December 24, 2005, 02:46:58 AM »

Step 1: Insert this into the <head> section of your page:

Code:

<script>
<!--
/*By Ishan Doshi - http://www.funindia.info
Credit must stay intact for use*/
function tile(bgname){
win2=window.open("","","width=380,height=380")
if (win2){
win2.focus()
win2.document.open()
win2.document.write("<head><title>"+bgname+"</title></head>")
win2.document.write("<body background="+'"'+bgname+'"'+">")
win2.document.write("</body>")
win2.document.close()
}
else
alert("Failed in spawning a new window!")
}
//-->
</script>


Step 2: Insert this into the <body> section of your page. You should change the file name of the background image to yours:

Code:

<a href="test.htm"
onclick="tile('backgr10.jpg');return false"><img
src="backgr10.jpg" border="0" width="80"
height="80"></a>
<a href="test.htm"
onclick="tile('backgr11.jpg');return false"><img
src="backgr11.jpg" border="0" width="128"
height="128"></a>

<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://funindia.info">Funindia.info
</a></font></p>

Report to moderator   Logged
Pages: [1]   Go Up
Print

Jump to: