»
AnglaisFranaisVietnamien

Imprimer - Site Logo Script - JavaScriptBank.com

Version complte: jsB@nk » Image » Site Logo Script
URL: http://www.javascriptbank.com/site-logo-script.html

Site Logo Script © JavaScriptBank.comUn site script qui affiche un logo statique dans le coin inférieur droit de l'écran. Le logo est lui-même de cliquer dessus. L'ensemble du script est encapsulé dans un JavaScript fichier, vous permettant de déployer facilement le logo sur plusieurs pages.

Version complte: jsB@nk » Image » Site Logo Script
URL: http://www.javascriptbank.com/site-logo-script.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction setVariables() {imgwidth=235;  // logo width, in pixelsimgheight=150;  // logo height, in pixelsif (navigator.appName == "Netscape") {horz=".left";vert=".top";docStyle="document.";styleDoc="";innerW="window.innerWidth";innerH="window.innerHeight";offsetX="window.pageXOffset";offsetY="window.pageYOffset";}else {horz=".pixelLeft";vert=".pixelTop";docStyle="";styleDoc=".style";innerW="document.body.clientWidth";innerH="document.body.clientHeight";offsetX="document.body.scrollLeft";offsetY="document.body.scrollTop";   }}function checkLocation() {objectXY="branding";var availableX=eval(innerW);var availableY=eval(innerH);var currentX=eval(offsetX);var currentY=eval(offsetY);x=availableX-(imgwidth+30)+currentX;y=availableY-(imgheight+20)+currentY;evalMove();setTimeout("checkLocation()",10);}function evalMove() {eval(docStyle + objectXY + styleDoc + horz + "=" + x);eval(docStyle + objectXY + styleDoc + vert + "=" + y);}// End --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload="setVariables(); checkLocation();"><div id="branding" style="position:absolute; visibility:show; left:235px; top:-50px; z-index:2"><table width=10 bgcolor=#ffffff><td><a href="http://www.yoursite.com" onmouseover="window.status='Thanks for visiting!';return true" onmouseout="window.status='';return true"><center><img src="logojs.gif" width="235" height="150" border="0"></center></a></font></td></table></div></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->