Jump to content
Fórum Script Brasil
  • 0

Dúvida com frame.scrollBy(x,y)


Josué Borges

Question

Olá, esse código meu simplesmente não funciona, o detalhe é que no site (Shark Zone - Exemplo) funciona certinho, alguma sugestão?

Eu já tentei de tudo para fazer um Iframe mover se para o canto inferior direito, através de uma função, mas nenhum êxito!

<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<div>
   <iframe name="frame" id="frame" 
           scrolling="no" 
           src="http://www.sharkzonedesign.com/;
           width="300" height="200"></iframe>
   <p>
      <form>
         <input type="button" value="Up" onClick="frame.scrollBy(0,-100)" />
         <input type="button" value="Down" onClick="frame.scrollBy(0,100)" />
         <input type="button" value="Left" onClick="frame.scrollBy(-100,0)" />
         <input type="button" value="right" onClick="frame.scrollBy(100,0)" />
      </form>
   </p>
</div>
</body>
</html>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.2k
    • Total Posts
      652k
×
×
  • Create New...