2008年2月4日 星期一

浮動圖示

貼在<body> 之前


 


 

<DIV id="waterMark" style="position:absolute">

<A href="index.htm"><IMG src="logo1515.gif" width="20" height="20" border=0></A>

</DIV>

<script language="JavaScript1.2">

<!--

// Watermark script by Paul Anderson, CNET Builder.com. All rights reserved.


 

markW = 15; // 圖檔的寬

markH = 15; // 圖檔的長

markX = 95; // 螢幕上X軸的位置

markY = 95; // 螢幕上Y軸的位置

markRefresh = 20; // 每幾千分之一秒重新定位


 

// set common object reference

if (!document.all) document.all = document;

if (!document.all.waterMark.style) document.all.waterMark.style = document.all.waterMark;


 

wMark = document.all.waterMark.style;

wMark.width = markW;

wMark.height = markH;

navDOM = window.innerHeight; // Nav DOM flag


 

function setVals() {

barW = 0; // scrollbar compensation for PC Nav

barH = 0;

if (navDOM) {

if (document.height > innerHeight) barW = 20;

if (document.width > innerWidth) barH = 20;

} else {

innerWidth = document.body.clientWidth;

innerHeight = document.body.clientHeight;

}

posX = ((innerWidth - markW)-barW) * (markX/100);

posY = ((innerHeight - markH)-barH) * (markY/100);

}


 

function wRefresh() {

wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);

wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);

}


 

function markMe() {

setVals();

window.onresize=setVals;

markID = setInterval ("wRefresh()",markRefresh);

}


 

window.onload=markMe; // safety for Mac IE4.5


 

//-->

</script>


 

狀態列效果

1.將語法插入在</head>之後


 

<script language="JavaScript">

var hellotext = "歡迎您來到HeHa網頁教學製作站"

var thetext = "";

var started = false;

var step = 0;

var times = 1;


 

function welcometext() {

times--;

if (!times) {

if (!started) {

started = true;

window.status = hellotext;

setTimeout("anim()", 1);

}

thetext = hellotext;

}

}


 

function anim() {

step++;

if (step==10) step = 2;

if (step==1) window.status = '●○○○○' + thetext + '○○○○●';

if (step==2) window.status = '○●○○○' + thetext + '○○○●○';

if (step==3) window.status = '○○●○○' + thetext + '○○●○○';

if (step==4) window.status = '○○○●○' + thetext + '○●○○○';

if (step==5) window.status = '○○○○●' + thetext + '●○○○○';

if (step==6) window.status = '○○○●○' + thetext + '○●○○○';

if (step==7) window.status = '○○●○○' + thetext + '○○●○○';

if (step==8) window.status = '○●○○○' + thetext + '○○○●○';

if (step==9) window.status = '●○○○○' + thetext + '○○○○●'


 

setTimeout("anim()", 200);

}


 

</script>

防止點右鍵偷圖

貼在 </HEAD> 之後


 


 

<script language="JavaScript1.1">

<!-- Begin

function right(e) {

if (navigator.appName =='Netscape'&&

(e.which ==3|| e.which ==2))

return false;

else if (navigator.appName == 'Microsoft Internet Explorer' &&

(event.button == 2|| event.button ==3)) {

alert("請尊重智慧財產權,謝謝。");

return false;

}

return true;

}

document.onmousedown=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

window.onmousedown=right;

//End -->

</script>

自動關閉視窗

10000代表10秒,可自行修改


 

<script LANGUAGE="JavaScript"><!-- setTimeout('window.close();', 10000); --></script>

上一頁,下一頁

上一頁

javascript:history.back();


 

下一頁

javascript:history.forward();

About Digitview

Digitview Technology Co., Ltd. was established in 2003, under integrate and inter dynamic with the customer and market for a long timing, the group of Digitview Technology finds another new opportunity of the industry of Taiwan: The market demand of digital video recorder. As science and technology changing with each passing day, the safety and security equipments have already progressed by early ' simulation ' type - VHS video tape recorder era to IT era – ` digitalization and computerization.

According to the confidence and enthusiasm of the market and products, Digitview Technology holds the spirit of ' pursue being outstanding; respect customer's need ' as our management idea. We also have the most acute sense to develop the most competitive products of the market, and offer our customers the most high-quality Omni-directional service to reach primary goal of creating customer's interests.


 

Our company is devoted to develop and produce the digital video recorder (DVR).We research and develop the new products which accord with market demand every season and has already succeeded in putting out many high functions DVR at present.


 

In addition, Digitview Technology always holds the faith that"service is above everything else". We runs specialized products education and training courses regularly to solve all problem in products for customers at any time. We always focus on what you need and look forward to servicing all our customers for years to come.

2008年2月2日 星期六

歡迎視窗

將以下的控制碼先複製起來。

然後將剛剛複製的東西在網頁中的 >body< 之中貼上就大功告成了!


>BODY onLoad="alert('歡迎您來到anny教學網!\n\n好東西要和好朋友分享!')"<


最後,更改原始碼中的歡迎內容就可以了!

那個 \n 就是強迫換行的參數