sange Posted November 25, 2006 Report Share Posted November 25, 2006 galera vejam esse site:http://www.tudosobrexcel.hpg.ig.com.br/la tem uma janela que pode ser mechida para qualquer local da tela alguém tem alguma ideia de como passa ser feito isso..!!???valeww.. Link to comment Share on other sites More sharing options...
0 .Andreia. Posted November 25, 2006 Report Share Posted November 25, 2006 Codigo retirado do codigo fonte:<script language=JavaScript1.2> var dragswitch=0 var nsx var nsy var nstemp function drag_dropns(name){ temp=eval(name) temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP) temp.onmousedown=gons temp.onmousemove=dragns temp.onmouseup=stopns } function gons(e){ temp.captureEvents(Event.MOUSEMOVE) nsx=e.x nsy=e.y } function dragns(e){ if (dragswitch==1){ temp.moveBy(e.x-nsx,e.y-nsy) return false } } function stopns(){ temp.releaseEvents(Event.MOUSEMOVE) } var dragapproved=false function drag_dropie(){ if (dragapproved==true){ document.all.showimage.style.pixelLeft=tempx+event.clientX-iex document.all.showimage.style.pixelTop=tempy+event.clientY-iey return false } } function initializedragie(){ iex=event.clientX iey=event.clientY tempx=showimage.style.pixelLeft tempy=showimage.style.pixelTop dragapproved=true document.onmousemove=drag_dropie } if (document.all){ document.onmouseup=new Function("dragapproved=false") } function hidebox(){ if (document.all) showimage.style.visibility="hidden" else if (document.layers) document.showimage.visibility="hide" }</SCRIPT></div> <DIV id=showimage style="LEFT: 175; WIDTH: 459; POSITION: absolute; TOP: 39; HEIGHT: 300"> <TABLE cellPadding=2 width=318 bgColor=#0066cc border=0 height="264"><TR bgColor=#ffffff> <TD width="375" height=258><div align="center"><center> <TABLE height=7 cellSpacing=0 cellPadding=2 width=439 border=0 style="border-collapse: collapse" bordercolor="#111111"> <TBODY><TR> <TD align=center onmousedown=initializedragie() style="CURSOR: help" width=394 height=8 bgcolor="#006699"> <FONT size="2" face="arial black" color=#FFFFFF> TITULO</FONT></TD> <TD style="CURSOR: help" width=13 bgColor=#006699 height=8 align="right"> <p align="center"> <DIV align=center><A onclick="hidebox();return false" href="#top" style="color: #ffffff; text-decoration: underline"> <IMG alt="Feche essa janela" src="fechar.gif" align=middle border=0 width="23" height="18"></A></DIV></TD></TR> <TR bgColor=#000000> <TD style="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" colSpan=3 height=117 width="420" bgcolor="#000000"> <TABLE cellSpacing=0 cellPadding=0 width="103%" border=1 style="border-collapse: collapse" bordercolor="#CCCCCC" height="105"><TBODY> <TR> <TD height=194 width="90%" bgcolor="#E8E8E8" bordercolor="#000066" align="center"> <p align="center"> <iframe name="I1" width="451" height="251" src="recado.htm" align="middle" border="0" frameborder="0" marginwidth="1" marginheight="1"></iframe> </TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></center></div></TD></TR></TABLE> crie uma pagina, que no codigo é chamada de recado.htm e escreva o que desejar Link to comment Share on other sites More sharing options...
0 sange Posted November 25, 2006 Author Report Share Posted November 25, 2006 po andreia_sp valeww... consegui .. muito obrigado...veleww.. mais uma vez Link to comment Share on other sites More sharing options...
Question
sange
galera vejam esse site:
http://www.tudosobrexcel.hpg.ig.com.br/
la tem uma janela que pode ser mechida para qualquer local da tela alguém tem alguma ideia de como passa ser feito isso..!!???
valeww..
Link to comment
Share on other sites
2 answers to this question
Recommended Posts