www.webdeveloper.com
Results 1 to 2 of 2

Thread: on hover script please

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    10

    on hover script please

    hey, can i have scripts codes etc to make a page frame rezise on hover over the top frame?

    i dont think it is possible but it will be great if it is. its for my site and you can see the frame in action without the script here : MY SITE!

  2. #2
    Join Date
    Sep 2008
    Location
    Montreal, QC, Canada
    Posts
    25
    Here's an example of a frameset being resized. I'm not sure if that's really what you want, though. Worked for me in Firefox.

    frameset.html

    Code:
    <html>
    <head>
    <script>
    function resizeit(){
    document.getElementById('frameset1').rows='400,*'
    }
    </script>
    </head>
    
    <frameset id="frameset1" framespacing="20" frameborder="10" border="20" rows="200,*">
    	<frame id="frame1" target="target1" src="test.html">
    	<frame id="frame2" target="target2" src="whatever.html">
    </frameset>
    
    </html>
    test.html (click the button in there to resize the frame)

    Code:
    <html><body>
    
    <script>
    </script>
    <input type="button" value="click" onclick="top.resizeit()">
    
    </body></html>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles