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


頁: [1]

#1  閃動文字 -  (Administrator) 發表於 20-5-2012 10:53

<!------------ 插入控制碼區段開始 ------------>

<script Language="JavaScript">
<!--
if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf("MSIE"!=-1) isIE4 = true;
else isIE4 = false;
function textAnima_color2(id,n) {
el = document.all.item(id,n);
charColor = el.getAttribute("SET_COLOR";
cur = el.getAttribute("CURRENT_CHAR";
if(cur=="" cur = 0;

getHTML= el.getAttribute("SET_TEXT";
if(getHTML == "") {
getHTML = el.innerText;
el.setAttribute("SET_TEXT",getHTML);
}

bef_t = getHTML.substring(0,cur); ;
aft_t = getHTML.substring(eval(cur)+1,getHTML.length);
cur_t = getHTML.substr(cur,1);
cur_t = cur_t.fontcolor(charColor);
el.innerHTML = bef_t + cur_t + aft_t;

cur++;
if(cur > getHTML.length) cur=0;
el.setAttribute("CURRENT_CHAR",cur);
getT = el.getAttribute("SET_TIME");
if(getT=="") getT = 100;
setTimeout("textAnima_color2('"+id+"',"+n+")",eval(getT));
}

if(isIE4) {
window.onload = init;
}


function init() {
id = "ANIMA_TEXT_COLOR2";
len = document.all.item(id).length;
if(!len) len=1;
for(var i=0;i<len;i++) {
textAnima_color2(id,i);
}
}
//-->
</script>

<b><span style="font-size:15pt;font-family:新細明體"
id="ANIMA_TEXT_COLOR2" SET_COLOR="#ff00ff"
SET_TIME="100" CURRENT_CHAR SET_TEXT>
歡迎光臨笨笨網站 / 笨笨網站超級論壇</span><b/>



<!------------ 插入控制碼區段結束 ------------>



這些是設定文字粗幼大小、顏色等控制,可在語法內自行更改

<b><span style="font-size:15pt;font-family:新細明體"
id="ANIMA_TEXT_COLOR2" SET_COLOR="#ff00ff"
SET_TIME="100" CURRENT_CHAR SET_TEXT>
歡迎光臨笨笨網站 / 笨笨網站超級論壇</span><b/>




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

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

<form name="copy">
<textarea cols="40" name="txt" rows="4" style="BACKGROUND-COLOR:#ffffff; COLOR:#000000; FONT-SIZE:9pt">
<script Language="JavaScript">
<!--
if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf("MSIE"!=-1) isIE4 = true;
else isIE4 = false;
function textAnima_color2(id,n) {
el = document.all.item(id,n);
charColor = el.getAttribute("SET_COLOR";
cur = el.getAttribute("CURRENT_CHAR";
if(cur=="" cur = 0;
getHTML= el.getAttribute("SET_TEXT";
if(getHTML == "") {
getHTML = el.innerText;
el.setAttribute("SET_TEXT",getHTML);
}
bef_t = getHTML.substring(0,cur); ;
aft_t = getHTML.substring(eval(cur)+1,getHTML.length);
cur_t = getHTML.substr(cur,1);
cur_t = cur_t.fontcolor(charColor);
el.innerHTML = bef_t + cur_t + aft_t;
cur++;
if(cur > getHTML.length) cur=0;
el.setAttribute("CURRENT_CHAR",cur);
getT = el.getAttribute("SET_TIME");
if(getT=="") getT = 100;
setTimeout("textAnima_color2('"+id+"',"+n+")",eval(getT));
}
if(isIE4) {
window.onload = init;
}

function init() {
id = "ANIMA_TEXT_COLOR2";
len = document.all.item(id).length;
if(!len) len=1;
for(var i=0;i<len;i++) {
textAnima_color2(id,i);
}
}
//-->
</script>
<b><span style="font-size:15pt;font-family:新細明體"
id="ANIMA_TEXT_COLOR2" SET_COLOR="#ff00ff"
SET_TIME="100" CURRENT_CHAR SET_TEXT>
歡迎光臨笨笨網站 / 笨笨網站超級論壇</span><b/>
</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