笨笨網站超級論壇 (綠色版本)


頁: [1]

#1  抓不到的文字 -  (Administrator) 發表於 20-5-2012 11:09

<STYLE type="text/css">
<!--
#ST01{position: absolute;
left:50;
top:50;}
-->
</STYLE>
<script language="Javascript">
<!--
var ver=0;

if (VerCheck(4)) {ver = 1;}
function VerCheck(version) {
if (version <= parseInt(navigator.appVersion.charAt(0))) {
return true;
} else {
return false;
}
}

function move() {
x = Math.floor(Math.random(1)*250)
y = Math.floor(Math.random(1)*200)
if (navigator.appName == "Netscape" {
document.layers["ST01"].left= x;
document.layers["ST01"].top= y;}
else {
document.all.ST01.style.left = x;
document.all.ST01.style.top = y;}
}
// -->
</script>

<SPAN ID=ST01>
<table><tr><td bgcolor="#ffffff">
<a href="javascript:move()" >
<SCRIPT language="JavaScript">
<!--
if (ver) {document.write('試點擊我,抓不到我啦!')}
// -->
</SCRIPT>
</a>
</td></tr></table>
</SPAN>



試點擊我,抓不到我啦!<<<可隨意更改

left:50;  <<< left、top、50 是文字顯示位置及範圍,可更改
top:50;




如不能顯示語法效果可貼去本站語法測試板試看

#2  複製上列語法 -  (Administrator) 發表於 25-5-2013 10:56

<form name="copy">
<textarea cols="40" name="txt" rows="4" style="BACKGROUND-COLOR:#ffffff; COLOR:#000000; FONT-SIZE:9pt">
<STYLE type="text/css">
<!--
#ST01{position: absolute;
left:50;
top:50;}
-->
</STYLE>
<script language="Javascript">
<!--
var ver=0;
if (VerCheck(4)) {ver = 1;}
function VerCheck(version) {
if (version <= parseInt(navigator.appVersion.charAt(0))) {
return true;
} else {
return false;
}
}
function move() {
x = Math.floor(Math.random(1)*250)
y = Math.floor(Math.random(1)*200)
if (navigator.appName == "Netscape" {
document.layers["ST01"].left= x;
document.layers["ST01"].top= y;}
else {
document.all.ST01.style.left = x;
document.all.ST01.style.top = y;}
}
// -->
</script>

<SPAN ID=ST01>
<table><tr><td bgcolor="#ffffff">
<a href="javascript:move()" >
<SCRIPT language="JavaScript">
<!--
if (ver) {document.write('試點擊我,抓不到我啦!')}
// -->
</SCRIPT>
</a>
</td></tr></table>
</SPAN>
</textarea><br>
<input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="全選">
</form>

<BR>

<script type="text/javascript"><!--
google_ad_client = "ca-pub-4078143172638881";
/* 336X280 */
google_ad_slot = "3268225205";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
頁: [1]

Powered by Discuz Simply! 0.54 Released © wxyuan90