pls help me ! Iframe - Post ID 15025

User 355448 Photo


Ambassador
3,144 posts

If you want to create links to an iframe, this is what I do:

<iframe
name="iframe"
width="600"
height="650"
src="page0.html"
frameborder="0"
scrolling="auto" >
</iframe>

That creates the iframe and displays the zero page. Then I create the links to the other pages like this:

<ul>
<li><a href="page1.html" target = "iframe">first page</a></li>
<li><a href="page2.html" target = "iframe">second page</a></li>
</ul>

You can add as many links as you need. Where I have the text "first page" you can place an image button or other text as suits your need.

I use this code on my web site.

Let us know if this works for you.
User 476846 Photo


Trial User
15 posts

Thank you very much for this help . I promise i will look into it very soon.

I also read the php includes / i will chosse the easy one , and the best one for SEO .

Thank you very much guys , you are big help for me .If need further assistance i will shout .

P.S. if you need assistance in Flash i,m your man :)


Thanks
Thannks
Thanks
Thanks
User 476846 Photo


Trial User
15 posts

you wrote this :

" Where I have the text "first page" you can place an image button "

pls. explain nooblike cose i don't understand , what exactly must i type in there ( i know that this is from my site ) give me an example .

thanks
User 355448 Photo


Ambassador
3,144 posts

I tried to view your site, but the initial load was taking too long for me to wait here at my work.

In the example I gave I had:

<li><a href="page1.html" target = "iframe">first page</a></li>

If you want that to have a button, change it to read something like:

<li><a href="page1.html" target = "iframe"><img src="button.jpg"></a></li>

You may also want to use the height, width, title, and alt attributes for the image.
User 476846 Photo


Trial User
15 posts

What is wrong with this code ?

<li><a href="page1.html" target = "iframe"><img border="0" src="files/butmic.jpeg" width="164" height="24"></li>
</ul>


the butmic.jpeg is uploaded on server in the files dir.

help ... :)
User 476846 Photo


Trial User
15 posts

sorry for it , my mistake the image file was jpg not jpeg

sorry
everything its in order now

thanks ..
User 476846 Photo


Trial User
15 posts

Its working with a .jpg file
But when i try to put there a .swf file / it shows but its not working as a button anymore

The code for the swf linked to the iframe is like this :

<li><a href="page1.html" target = "iframe"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="115" height="21" id="butmic" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="butmic.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="butmic.swf" quality="high" bgcolor="#ffffff" width="115" height="21" name="butmic" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</li>
</ul>

Any ideeas ? why doesn't work ?

Thanks
User 355448 Photo


Ambassador
3,144 posts

ro-sacalu,

Maybe I just don't see it, but your anchor does not appear to have a closing tag. Try putting in the required </a> and see if that fixes the problem. I think your code should look like:

</object>
</a>
</li>
User 476846 Photo


Trial User
15 posts

ok i've changed to this :

<li><a href="page1.html" target = "iframe"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="115" height="21" id="butmic" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="butmic.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="butmic.swf" quality="high" bgcolor="#ffffff" width="115" height="21" name="butmic" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</a>

</li>
</ul>


the button is still not functional , i must say the mouse pointer it changes when i mouse over but do not trigers

maybe its not working with .swf files ?

thanks
User 355448 Photo


Ambassador
3,144 posts

I have never tried to make a .swf file a link, so maybe someone with more .swf experience can help you.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.