Jump to content
Fórum Script Brasil
  • 0

Alt Durante Mais Tempo


David Leonardo

Question

8 answers to this question

Recommended Posts

  • 0

Veja um ex, do que eu estou falando:

    <script>

function simulacao_alt(id) {

  var itm = null;

  if (document.getElementById) {

  itm = document.getElementById(id);

  } else if (document.all){

  itm = document.all[id];

  } else if (document.layers){

  itm = document.layers[id];

  }

  if (!itm) {

    // do nothing

  }

  else if (itm.style) {

  if (itm.style.display == "none") { itm.style.display = ""; }

  else { itm.style.display = "none"; }

  }

  else { itm.visibility = "show"; }

}

    //-->

    </script>

<a onmouseover='simulacao_alt("OsG")' onmouseout='simulacao_alt("OsG")'>Gladisson</a>

<DIV ID='OsG' STYLE="display:none">

<TABLE  CELLPADDING='0' CELLSPACING='0' BORDER='0'>

<TR><TD BGCOLOR='#555555'>

<TABLE  CELLPADDING='6' CELLSPACING='1' BORDER='0'>

<TR><TD BGCOLOR='#DDDDDD'>

O melhor programador do mundo... hehehehehe... <BR>

(Quem dera...)

</TD></TR></TABLE>

</TD></TR></TABLE>

</div>

Link to comment
Share on other sites

  • 0
Veja um ex, do que eu estou falando:

    <script>

function simulacao_alt(id) {

   var itm = null;

   if (document.getElementById) {

  itm = document.getElementById(id);

   } else if (document.all){

  itm = document.all[id];

   } else if (document.layers){

  itm = document.layers[id];

   }

   if (!itm) {

    // do nothing

   }

   else if (itm.style) {

  if (itm.style.display == "none") { itm.style.display = ""; }

  else { itm.style.display = "none"; }

   }

   else { itm.visibility = "show"; }

}

    //-->

    </script>

<a onmouseover='simulacao_alt("OsG")' onmouseout='simulacao_alt("OsG")'>Gladisson</a>

<DIV ID='OsG' STYLE="display:none">

<TABLE  CELLPADDING='0' CELLSPACING='0' BORDER='0'>

<TR><TD BGCOLOR='#555555'>

<TABLE  CELLPADDING='6' CELLSPACING='1' BORDER='0'>

<TR><TD BGCOLOR='#DDDDDD'>

O melhor programador do mundo... hehehehehe... <BR>

(Quem dera...)

</TD></TR></TABLE>

</TD></TR></TABLE>

</div>

cara, o script funcionou.. com o seu nome, mas quando eu coloquei para utilizar uma imagem, parou....

será porque a imagem é um link?

Link to comment
Share on other sites

  • 0

<html>

<head>

<title>Projeto Santos Dumont</title>

<script language="javascript" type="text/javascript">

<!--

var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';

win=window.open(mypage,myname,settings);}

// -->

</script>

<p>&nbsp;</p>

<table width="600" border="0">

<tr>

<td><img src="imagens/negativo_deitado.jpg" width="600" height="21"></td>

</tr>

<tr>

<td height="100"> <div align="center"><a href="acervo/sd1367.jpg" onclick="NewWindow(this.href,'teste','360','500','yes','center');return false" onfocus="this.blur()">

</tr>

<tr>

<td><img src="imagens/negativo_deitado.jpg" width="600" height="21"></td>

</tr>

</table>

<p align="justify">&nbsp;</p>

</div></td>

</tr>

</table>

</body>

</html>

esse é o código ( simplificado)

Link to comment
Share on other sites

Join the conversation

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

Guest
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
      152.1k
    • Total Posts
      651.8k
×
×
  • Create New...