Results 1 to 7 of 7

Thread: Iframe Help

  1. #1
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe Help

    Im new to html. I want to make a webpage with hover buttons to the left, ehich (when clicked) change the url of the Iframe in the middle, I can make hover buttons, and I can make Iframes which have links which determine their destination, but I can't seem to combine them! Can you help? My page source is a bit messy because I have been adding things in hope of success and forgetting to remove them when they don't work:


    <html>

    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    </head>

    <body>

    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="12%" id="AutoNumber1">
    <tr>
    <td width="100%">
    &nbsp;</td>
    </tr>
    <a href="index2.html" target="iframetest"><tr>
    <td width="100%">
    <applet code="fphover.class" codebase="./" width="120" height="18">
    <param name="textcolor" value="#FFFFFF">
    <param name="text" value="Hello">
    <param name="color" value="#00FFFF">
    <param name="hovercolor" value="#00FF00">
    <param name="effect" value="fill">
    <param name="url" valuetype="ref" value="http://www.google.com" target="iframetest">
    </applet></a><param name="target" value="iframetest"></td>
    </tr>
    </table>
    <td>
    </a>
    <a target="iframetest" href="http://www.google.com">page1</a><br /><br />
    <a target="iframetest" href="http://www.yahoo.com">page2</a><br /><br />
    <a target="iframetest" href="http://www.notpron.com">page3</a><p>&nbsp;</td><td><span style="position: absolute; left: 14; top: 242"><iframe src="iframetest" width="200" height="100" name="iframetest">Sorry, your browser doesn't support iframes.</iframe>
    </span>
    </td>
    </p>
    </body>

    </html>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You are using a Java Applet, not JavaScript. There is a big difference. Have you taken a look at some of the JavaScripts available here to see if any would suit or come close to suiting your purpose?

  3. #3
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    As you see, I don;t really know much about html. I just want to see if it is possible to make my hover buttons work with the iframe.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, then this belongs in the 'Other' forum. I usually don't get involved there too much.

  5. #5
    Join Date
    Apr 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if you want to load something into an iframe just give the iframe an id and then aim the link at that target

    ie

    <iframe src="default.php" id="iframesitemainframe">enable iframes you n008 or your not a h4x0r</iframe>
    <a href="secondpage.php" target="iframesitemainframe">click here to see more content</a>

  6. #6
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by a2z
    if you want to load something into an iframe just give the iframe an id and then aim the link at that target

    ie

    <iframe src="default.php" id="iframesitemainframe">enable iframes you n008 or your not a h4x0r</iframe>
    <a href="secondpage.php" target="iframesitemainframe">click here to see more content</a>
    Yeah I know but it doesnt seem to wo work with the hover buttons I made.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's because they are Java Applets. Make them in JavaScript and you should have more luck.

Bookmarks

Posting Permissions

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