2004-09-02, 11:40 PM
|
#4 (permalink)
|
長老會員
|
浮水印圖片廣告連結
範例:本頁右下方→↓
撰寫位置:<body>跟</body>之間
說明:logo會跟隨捲軸移動,固定位置。更改為你所要使用的圖檔跟網址。
JavaScript程式:
--------------------------------------------------------------------------------
<DIV CLASS="jsbrand" ID="jsbrand" STYLE="position:absolute;top:1;visibility:hide;" zIndex="1000" ALIGN="right">
<A HREF="http://98.to/fu3/" TARGET="_blank"><IMG SRC="logo/logo-s3.gif" ALT="迷惘謎網" BORDER="0"></A>
</DIV>
<script language="Javascript1.2">
<!--
var window_says = "迷惘謎網";
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 + 15;
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>
|
__________________
給自己看也給所有需要這些話鼓勵的人看!
認真不一定會得到美好的結果,但是不認真就一定沒有
想要有什麼結果,就秉持你的雙手 放手去做 總比什麼都沒付出最後失敗了才嘆氣來的好吧 沒努力的人.沒有資格說放棄 努力過的人.更要有勇氣繼續努力下去
|
|
送花文章: 1,
收花文章: 38 篇, 收花: 123 次
|