View Full Version : Live Background Previewer Script - Other Versions?
janet321
01-15-2005, 12:14 AM
The background previewer script (http://www.dynamicdrive.com/dynamicindex3/document1.htm) is almost exactly what I'm looking for BUT usable in more browsers than just IE. Any chance of a script that works with NS 6+ and Firefox/Mozilla?
Please?!!
ddadmin
01-17-2005, 10:43 PM
Hi:
That certainly looks possible, I'll make a note of this, and if an update is posted, update this thread.
janet321
01-21-2005, 09:14 PM
I hope it can be done. Thank you for considering it! :)
You may pass image name directly, e.g.:
<html>
<head>
<script language="JavaScript1.2">
<!--
function tile(mysrc){
document.body.style.backgroundImage = 'url('+mysrc+')';
}
//-->
</script>
</head>
<body>
<img src="photo1.jpg" onClick="tile('photo1.jpg');">
<img src="photo2.jpg" onClick="tile('photo2.jpg');">
</body>
</html>
janet321
01-22-2005, 06:15 PM
Thanks, FPit! I'll give your script a try. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.