Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-05-2009, 04:33 PM   #1
In Runtime
 
hockeygoalie5's Avatar
 
Join Date: Dec 2009
Location: United States
Posts: 297
Default Iframe Issue

I am coding a web page that has two iframes, one for a sub navigation box and another that serves as the main iframe. Both iframes have a name and ID tag. I've tried using the Java command loadintoframe and the target attribute but the links still won't open in either iframes.

Here is the code for both frames:
Code:
<iframe id="subnav" src="nav/websitenav.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
Code:
<iframe name="mainframe" id="mainframe"  src="home.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:compact"></iframe>
One of the links:
Code:
<div class="content" id="content"><a href="team.html" target="mainframe"><img src="../images/content/+.png" text-decoration="none" width="8" height="8" border="0" />Meet The Team</a>
The links still open in a new window.
__________________

hockeygoalie5 is offline   Reply With Quote
Old 12-08-2009, 03:37 PM   #2
In Runtime
 
hockeygoalie5's Avatar
 
Join Date: Dec 2009
Location: United States
Posts: 297
Default Re: Iframe Issue

Anyone?
__________________

hockeygoalie5 is offline   Reply With Quote
Old 12-28-2009, 04:15 PM   #3
In Runtime
 
Daeva's Avatar
 
Join Date: Dec 2005
Posts: 407
Send a message via AIM to Daeva Send a message via MSN to Daeva Send a message via Yahoo to Daeva
Default Re: Iframe Issue

What are you specifically using the iframes for? 9 times out of 10 iframes are bad for your site. Either browsers don't support them the same way or it negatively affects your websites SEO.
__________________
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier.
Edit = Best feature ever
http://www.twitter.com/xDaevax
Daeva is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:17 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0