Place code into an insert > HTML (webgem in Trellix)
I have made notes in code below and it will effect functionality!
Use the Select All choice above!
Change blue items to match your image
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Randy Bennett (rbennett@thezone.net) -->
<!-- Web Site: http//home.thezone.net/~rbennett/utility/javahead.htm -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function setVariables() {
imgwidth=22; // logo width, in pixels
imgheight=22; // logo height, in pixels
if (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>
|
Place code into an insert > HTML (webgem in Trellix)
MUST change each gEMDIR to GEMDIR before using code!
I have made notes in code below and it will effect functionality!
Use the Select All choice above!
Change items in red to match your statement in the status bar (lower left corner of window)
Change brown item to the link address...click logo and go to this page!
Change blue items to match your image name and size
Change speed, if needed.
<BODY onload="setVariables(); checkLocation();">
<div id="branding" style="position:absolute; visibility:show; left:255px; top:-50px; z-index:2">
<table width=10 bgcolor=#ffffff><td>
<a href="http://www.samisite.com/webbuild.htm" onmouseover="window.status='Thanks for visiting!';return true" target="_top" onmouseout="window.status='';return true"><center><img src="^GEMDIR/samslogotiny22x22dkbutton.gif" width="22" height="22" border="0"></center></a></font></td>
</table></div>
|