lordofthecynics 0 Report post Posted March 15, 2005 I'm using Dreamweaver MX 2004 with a combination of design and coding, right? Should be simple to make a rather simplistic but cool-looking web site. Easy, right? Well, when it comes to iframes, it's not. I don't know exactly how I did it in the first place, but I used the iframe tag set (using DW's nice little "insert tag here" feature) and now I'm rather lost on how to get it to work right. Anyway, I'm blathering here, so I'll get to the point. Go to my webpage and take a look. You'll notice that the news.html file properly displays within the iframe. Well, click on any of the links on the side, and you get my temporary pages, only they don't open within the frame. What gives? Anyone know how to get them to open in it like the news file does?Also, if you highlight a link on the left side, then move the mouse away, the title bar goes blank, rather than showing the main title again (those are images, by the way). So how do I fix that?Thanks ahead of time to anyone who contributes any info or comments on this issue.~Andy Share this post Link to post Share on other sites
whyme 0 Report post Posted March 15, 2005 i'm not postivie, but i think the source of your error is the javascript coding, not to say that the coding is wrong, but i think that the javascript may be interfereing with the iframe function. A good try (if you're using firefox, is to disable javsricpt in the options area. and test out if that still occurs, if it is, try using <? php include ("content.html") ?> that always works - if you're not php compliant, i'll help you out. ) hope this helps,whyme Share this post Link to post Share on other sites
bjrn 0 Report post Posted March 15, 2005 So, when a visitor clicks on one of the menu thinggies you want the new page to load only in the iframe, right?What you need to do it give the iframe a name, just like with "normal" frames. Like <iframe name="framename" etc. etc.>And then give the links a target like so:<a href="page.html" javascript stuff etc. etc. target="framename"> That should hopefully work. But make a backup of what you have before trying it Share this post Link to post Share on other sites
lordofthecynics 0 Report post Posted March 15, 2005 I don't know anything about PHP, so I guess I'm kinda screwed there...I tried naming the frame and putting in the target as you suggestedm but that just makes it open in a new window. Share this post Link to post Share on other sites
whyme 0 Report post Posted March 15, 2005 it's not ashard as you think, simply save the page as .php instead of .html, then instead of placeing the iframe tag below,<iframe="newsandupdates.html" />replace it with the following<? phpinclude ("newsandupdates.html") ?>then you're done! Share this post Link to post Share on other sites
Dooga 0 Report post Posted March 15, 2005 Your site is in html, so here's what you do:Name your frame... <iframe name="_frame">Make your links like this: <a href="http://page.html" target="_frame">Click here</a> Share this post Link to post Share on other sites
lordofthecynics 0 Report post Posted March 16, 2005 Your site is in html, so here's what you do: Name your frame... <iframe name="_frame">Make your links like this: <a href="http://page.html" target="_frame">Click here</a> 60473[/snapback] Wow. I can't believe it was that easy. I added in the underscores and they all worked fine! Now the only problem is getting the "World of Glass" title to reappear when you move the mouse away from a button. Everything else involves change appearance and rearranging things and whatnot. Share this post Link to post Share on other sites
lordofthecynics 0 Report post Posted March 20, 2005 Wow. I can't believe it was that easy. I added in the underscores and they all worked fine! Now the only problem is getting the "World of Glass" title to reappear when you move the mouse away from a button. Everything else involves change appearance and rearranging things and whatnot. 60586[/snapback] Ok... anyone know how to fix that? (see above) Share this post Link to post Share on other sites