Enter the bulletin board of the page

Source: Internet
Author: User
Tags visibility
Tip: you can modify some code before running

<html><head><title>Enter the bulletin board of the page</title></head><body>Image files:<BR>Save this file in the same directory as the webpage file<BR><!--将以下代码加入HTML的<Body></body>之间--><script language="javascript">Var IE5 = (document. getElementById & document. all )? True: false; var W3C = (document. getElementById )? True: false; var currIDb = null, currIDs = null, xoff = 0, yoff = 0; zctr = 0; totz = 0; function trackmouse (evt) {if (currIDb! = Null) & (currIDs! = Null) {var x = (IE5 )? Event. clientX + document. body. scrollLeft: evt. pageX; var y = (IE5 )? Event. clientY + document. body. scrollTop: evt. pageY; currIDb. style. left = x + xoff + 'px '; currIDs. style. left = x + xoff + 10 + 'px '; currIDb. style. top = y + yoff + 'px '; currIDs. style. top = y + yoff + 10 + 'px '; return false ;}} function stopdrag () {currIDb = null; currIDs = null; NS6bugfix ();} function grab_id (evt) {xoff = parseInt (this. IDb. style. left)-(IE5 )? Event. clientX + document. body. scrollLeft: evt. pageX); yoff = parseInt (this. IDb. style. top)-(IE5 )? Event. clientY + document. body. scrollTop: evt. pageY); currIDb = this. IDb; currIDs = this. IDs;} function NS6bugfix () {if (! IE5) {self. resizeBy (0, 1); self. resizeBy (0,-1) ;}} function incrzindex () {zctr = zctr + 2; this. subb. style. zIndex = zctr; this. subs. style. zIndex = zctr-1;} function createPopup (id, title, width, height, x, y, isdraggable, boxcolor, barcolor, shadowcolor, text, textcolor, textptsize, textfamily) {if (W3C) {zctr + = 2; totz = zctr; var txt = ''; txt + ='<div id="'+id+'_s" +(x+10)+'px; top:'+(y+10)+'px; width:'+width+'px; height:'+height+'px; background-color:'+shadowcolor+'; filter:alpha(opacity=50); visibility:visible"> </div>';txt+='<div id="'+id+'_b" +barcolor+' 2px; position:absolute; left:'+x+'px; top:'+y+'px; width:'+width+'px; overflow:hidden; height:'+height+'px; background-color:'+boxcolor+'; visibility:visible">'; Txt + ='<div +width+'px; height:16px; background-color:'+barcolor+'; padding:0px; border:1px"><table cellpadding="0" cellspacing="0" border="0" width="'+(IE5? width-4 : width)+'"><tr><td width="'+(width-20)+'"><div id="'+id+'_h" +(width-20)+'px; height:14px; font: bold 12px sans-serif; color:'+textcolor+'">'+ Title +'</div></td><td align="right"></td></tr></table></div>'; Txt + ='<div id="'+id+'_ov" width:'+width+'px; +textcolor+'; font:'+textptsize+'pt '+textfamily+';">'+text+'</div></div>';document.write(txt);this.IDh=document.getElementById(id+'_h');this.IDh.IDb=document.getElementById(id+'_b');this.IDh.IDs=document.getElementById(id+'_s');this.IDh.IDb.subs=this.IDh.IDs;this.IDh.IDb.subb=this.IDh.IDb;this.IDh.IDb.IDov=document.getElementById(id+'_ov');if(IE5){this.IDh.IDb.IDov.style.width=width-6;this.IDh.IDb.IDov.style.height=height-22;this.IDh.IDb.IDov.style.scrollbarBaseColor=boxcolor;this.IDh.IDb.IDov.style.overflow="auto";}else{this.IDh.IDs.style.MozOpacity=.5;}this.IDh.IDb.onmousedown=incrzindex;if(isdraggable){this.IDh.onmousedown=grab_id;this.IDh.onmouseup=stopdrag;}}}if(W3C)document.onmousemove=trackmouse;if(!IE5 && W3C)window.onload=NS6bugfix;createPopup('box3','网页特效梦工厂' ,288, 90, 275, 155, true, 'FF8000' , '000000' , '800000' , '欢迎 欢迎 热烈欢迎' , 'FFFF00' , 9 , '宋体');</script></body></html>
提示:您可以先修改部分代码再运行

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.