Jump to content
Fórum Script Brasil
  • 0

Imagem Flutuante

Eu o Mister HTML !!!


Imagem flutuante

uma imagem que pode ser arrastada para qualquer lugar

coloque entre as tags <head> e </head>:
<script language="JavaScript" type="text/javascript">
  var dragswitch=0 
  var nsx
  var nsy
  var nstemp
  function drag_dropns(name){
  temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
  function gons(e){
  function dragns(e){
  if (dragswitch==1){
  return false 
  function stopns(){
  var dragapproved=false
  function drag_dropie(){
  if (dragapproved==true){
  return false
  function initializedragie(){
  if (document.all){
  document.onmouseup=new Function("dragapproved=false") 
  function hidebox(){
  if (document.all)
  else if (document.layers)
coloque entre as tags <body> e </body>:
<DIV id="showimage" style="LEFT: 50px; WIDTH: 50px; POSITION: absolute; TOP: 1px">
<TABLE cellSpacing=0 cellPadding=0 width="50" bgColor="transparent" border=0>
    <TD width="100%">
      <TABLE height=36 cellSpacing=0 cellPadding=0 width="100%" border=0>

          <TD align="center"
         onmousedown=initializedragie() style="CURSOR: hand" 
            width="100%" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px" 
          width="100%" bgColor="Transparent" colSpan=2><ILAYER width="100%"><LAYER 
            onmouseout=dragswitch=0 width="100%"><SMALL> <img src="No_Stress_PC.jpg" Height="45" Width="45" border="0"> 
<input type="text" style="background-color: transparent; color: cyan; border-top: 0px; border-bottom: 0px; border-right: 0px; border-left: 0px; text-align: center" size="6" ></SMALL> </LAYER></ILAYER><BR>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...