i have tried several diferent scripts to try to get a floating logo in the bottom corner of my page with no luck.
i am using VS 2005 to develop an aspx application.
when i use the following script the image flashes in the top left corner of the and goes away. i actually have to refresh and watch close to see that it is there. any suggestions?
Code:<DIV CLASS="jsbrand" ID="jsbrand" STYLE="position:absolute;top:1;visibility:hide;" zIndex="1000" ALIGN="right"> <A HREF="http://www.a1javascripts.com" TARGET="_top"><IMG SRC="jsnow.gif" ALT="A1 JavaScripts" BORDER="0"></A> </DIV><!-- --> <script language="Javascript1.2"> <!-- // you must keep the following lines on when you use this // original idea from the Geocities Watermark // © Nicolas - http://www.javascript-page.com var window_says = "A1 Javascripts"; var image_width = 88; var image_height = 31; var left_from_corner = 0; var up_from_corner = 0; var JH = 0; var JW = 0; var JX = 0; var JY = 0; var left = image_width + left_from_corner + 17; var up = image_height + up_from_corner + 15; if(navigator.appName == "Netscape") { var wm = document.jsbrand; } if (navigator.appVersion.indexOf("MSIE") != -1){ var wm = document.all.jsbrand; } wm.onmouseover = msover wm.onmouseout = msout function watermark() { if(navigator.appName == "Netscape") { JH = window.innerHeight JW = window.innerWidth JX = window.pageXOffset JY = window.pageYOffset wm.visibility = "hide" wm.top = (JH+JY-up) wm.left = (JW+JX-left) wm.visibility= "show" } if (navigator.appVersion.indexOf("MSIE") != -1){ if (navigator.appVersion.indexOf("Mac") == -1){ wm.style.display = "none"; JH = document.body.clientHeight; JW = document.body.clientWidth; JX = document.body.scrollLeft; JY = document.body.scrollTop; wm.style.top = (JH+JY-up); wm.style.left =(JW+JX-left); wm.style.display = ""; } } } function msover(){ window.status = window_says return true; } function msout(){ window.status = "" return true; } setInterval("watermark()",100); //--> </script>



Reply With Quote
Bookmarks