»
EnglishFrenchVietnamese

Print - Site Logo Script - JavaScriptBank.com

Full version: jsB@nk » Image » Site Logo Script
URL: https://www.javascriptbank.com/site-logo-script.html

Site Logo Script © JavaScriptBank.comA site logo script that displays a static logo on the bottom right corner of the screen. The logo itself is clickable. The entire script is encapsulated in an external JavaScript file, allowing you to easily deploy the logo on multiple pages.

Full version: jsB@nk » Image » Site Logo Script
URL: https://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-->