語法 :::::::::
語法 :::::::::
按圖進入日記
<script type='text/javascript'>
<!--
var image = '圖片網址';
document.write('<table height="100%" width="100%" id="enterimg" style="display:block"><tr><td align="center" valign="center"><a href="#" onClick="enterSite()"><img src="'+image+'" alt="按此進入" border="0"></a></td></tr></table>');
function enterSite() {
var content = document.getElementsByTagName("table");
for (var i=0; i<content.length;i++) {
content.style.display = 'block';
}
content = document.getElementsByTagName("div");
for (var i=0; i<content.length;i++) {
content.style.display = 'block';
}
content = document.getElementsByTagName("object");
for (var i=0; i<content.length;i++) {
content.style.display = 'block';
}
document.getElementById("enterimg").style.display = 'none';
return false;
}
// -->
</script>
<style type="text/css">
table, div, object { display:none; }
</style>
<body >
日記畫面縮小
<style>body{
border-left: 粗度px dotted #顏色;
border-right: 粗度px dotted #顏色;
border-top: 粗度px dotted #顏色;
border-bottom: 粗度px dotted #顏色;
}</style>
|