![]() |
請問要如何修改 java script ?
請問要如何把以為的java script 所顯示的文字改成白色 的?
<script language="javascript1.2"> <!-- var s=1024; if(screen.width!=s); document.write("您的螢幕解析度是 "+screen.width+" * "+screen.height); if(screen.width!=s)document.write(",並非最佳解析度,建議更換解析度。"); else document.write(",符合本站最佳瀏覽環境。"); //--> </script> |
body{background-color:blue;COLOR:WHITE}
或 document.write("<font color=white>您的螢幕解析度是 "+screen.width+" * "+screen.height+"</font>"); 您試試吧... 另外提醒您,請不要重複張貼相同內容的文章... 還有請遵守各版規定,謝謝... <參考> |
document.write("<font color=white>您的螢幕解析度是 "+screen.width+" * "+screen.height+"</font>");
這段是可以啦~~不過以下的文子還是黑的----可不可再請幫個忙~謝謝 if(screen.width!=s)document.write(",並非最佳解析度,建議更換解析度。"); else document.write(",符合本站最佳瀏覽環境。"); |
document.write("<font color=white>您的螢幕解析度是 "+screen.width+" * "+screen.height");
if(screen.width!=s)document.write(",並非最佳解析度,建議更換解析度。</font>"); else document.write(",符合本站最佳瀏覽環境。</font>"); 上述只是給您一各參考而已,將</font>加在結束的地方就行啦... <參考> |
怎麼還是不行?~請問到最後這段 java script 到底應該長什麼樣子丫?!~~
|
<script language="javascript1.2">
<!-- var s=1024; if(screen.width!=s); document.write("<font color=white>您的螢幕解析度是 "+screen.width+" * "+screen.height); if(screen.width!=s)document.write(",並非最佳解析度,建議更換解析度。"); else document.write(",符合本站最佳瀏覽環境。"); document.write("</font>"); //--> </script> <這樣試試吧> |
所有時間均為台北時間。現在的時間是 04:18 AM。 |
Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.
『服務條款』
* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *