Page 1 of 1

Logo Branding

Posted: Fri Dec 24, 2004 7:40 am
by coco
Have you seen the floating logo on the Geocities site? How would you like to have your logo floating in the corner of the site? This script does just that!

<!-- THREE STEPS TO INSTALL LOGO BRANDING:

1. Insert the first code into the HEAD of your HTML ****
2. Add the onLoad event handler to the BODY tag
3. the last code into the BODY of your HTML **** -->



<head>

<script type="text/javascript" language="JavaScript">
<!-- Begin
function setVariables() {
imgwidth=235; // logo width, in pixels
imgheight=19; // logo height, in pixels
if (navigator.appName == "Netscape") {
horz=".left";
vert=".top";
docStyle="****.";
styleDoc="";
innerW="window.innerWidth";
innerH="window.innerHeight";
offsetX="window.pageXOffset";
offsetY="window.pageYOffset";
}
else {
horz=".pixelLeft";
vert=".pixelTop";
docStyle="";
styleDoc=".style";
innerW="****.body.clientWidth";
innerH="****.body.clientHeight";
offsetX="****.body.scrollLeft";
offsetY="****.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>

</head>



<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>
Image</td>
</table>
</div>

</body>

Posted: Thu Apr 07, 2005 8:12 pm
by shanker
lolz, whats the point of submitting java scripts code u find on the internet? i can find the script u posted here and many more on decent sites like http://www.dynamicdrive.com

comme on pplz, write some new scripts and show off what u gotz man

Posted: Thu Aug 25, 2005 8:52 am
by toychoq
Nice job

Can get on with it
why logo branding are there any commercila sites

Posted: Fri Feb 24, 2006 9:00 am
by kaos_frack
cool
but i could not understand javascipt, lol