iFrames

Permabanned
Joined
28 Oct 2006
Posts
6,552
Location
Bournemouth
hi, i currently have my home page set to one i made, it has 2 i frames, one being Google, and the other being my myspace, as i often look at these 2 pages and thought it would be a good idea to put them both on my start up page.

I have 2 problems though, when it opens, Firefox scrolls down a bit so i can see both, i want the focus to be at the top of the page and i don't want it to scroll

secondly, i need to learn(copy+paste) some code that allows me to get rid of one of the i frames, for instance, when i Google search in the top frame, i would like to be able to get the myspace frame to go away, no complex code that automatically does it but like a little hyper link!

this is the code i currently use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Home</title>

</head>
<body>
<iframe
src ="http://www.google.co.uk/ig?hl=en"
width="100%" height="1000" frameborder="0">
</iframe>
<iframe
src ="http://home.myspace.com/Modules/HomeDisplay/Pages/Home.aspx??fuseaction=user"
width="100%" height="10000" frameborder="0">
</iframe>
</body>
</html>

Thanks in advance
Frosty
 
Last edited:
Jaffa_Cake said:
I suppose you could do a onclick="" event on the iframes..

I have a feeling thats a very very bad method but it might work.

<iframe onclick="parent.location='http://google.co.uk'"

no that method doesnt work, the iframe, isnt really a thing to click, its just a bit to have a website that is in another website!!
 
marc2003 said:
i'm guessing it's impossible as you have no control over the page in the frame. :)

lol, quite, urm, is it possible to use frames, this was my first idea, but i couldn't work out how to have like 2 frames inside another frame, if you understand. My issue with frames was that for one to be full sized with a scroll, the other one was tiny on the bottom and had a tiny scroll which was annoying
 
FrostedNipple said:
lol, quite, urm, is it possible to use frames, this was my first idea, but i couldn't work out how to have like 2 frames inside another frame, if you understand. My issue with frames was that for one to be full sized with a scroll, the other one was tiny on the bottom and had a tiny scroll which was annoying

no i'm not disputing it's possible to use frames. but because you have no control over the content inside the frame, you cannot escape/jump out of the frame simply by using the page inside it.

but perhaps another way is to code something into the page containing the iframes, like a link you can click to remove frames. you must have see that on google image search? :)
 
marc2003 said:
no i'm not disputing it's possible to use frames. but because you have no control over the content inside the frame, you cannot escape/jump out of the frame simply by using the page inside it.

but perhaps another way is to code something into the page containing the iframes, like a link you can click to remove frames. you must have see that on google image search? :)

yes, thhat was the style of what i was trying to acheive, a link that simply gets rid of the frame, that would be lovly if someone could conjur up some code like that!
 
marc2003 said:
just put an <a href="...." in the code before the <iframe> tag for each url? :)

i have done that, its a bit naff, i like the idea of clicking the item and the other 1 disapearing, would you be able to do that with a frameset???
 
Easiest solution is to abandon firefox and use tiled tabs in Opera.

The other thing I was thinking of is to screen-scrape google and your myspace site using php and replace <a href=".... with <a target="_blank" href="..... Or appending a default target to the top of the scrape.

That'd work.
 
jdickerson said:
Easiest solution is to abandon firefox and use tiled tabs in Opera.

The other thing I was thinking of is to screen-scrape google and your myspace site using php and replace <a href=".... with <a target="_blank" href="..... Or appending a default target to the top of the scrape.

That'd work.

2 much work lol, does anyone know an add-on that makes firefox start up with 2 tabs???
 
FrostedNipple said:
opera is noob tbh, nothing compared with a fox made from fire

I would agree with you if we were talking about Opera about a year ago. But since then theres been a lot of improvements including the speeddial feature which is incredibly useful.
 
I have on my desk access to Safari, IE, Firefox and Opera. I use IE and Opera far more than others. Infact, I use safari more than fox!
 
Back
Top Bottom