View Full Version : Hi from a newbie + help with Iframes


Saffi
05-11-2003, 12:15 AM
Hullo.. i'm new here.. just starting working on graphics and learning new stuff for putting my site together...

and sadly i'm a 20 year old with essentially no knowledge of anything past basic html.

my problem is.. i have my Iframe set up and looking all pretty... but i've got image links on the outside of the frame. I've used the target="main" - main being the name of my Iframe... and that didn't work.. the entire page changed instead of just the frame.

I tried target="_main" Which had essentially the same effect.

i tried putting nothing after the url in the a href tag, and it for some reason popped up a new page...

however if i put the link in the frame... it works fine...

thanks to those who can help, and those who took the time to look.

-saffi

Elentari
05-11-2003, 12:53 AM
Can't give you specifics without you either posting your code or a link to the page you're working on...but your iframe code should look like the following.....(This is just an example of my iframe on my page)


<iframe src="iframe.html" name="iframe" width="525" height="1060px" frameborder="0" scrolling ="no"></iframe>


And the your links should look like this...(the first is a basic link, the second is a picture link)


<a href="page.html" target="iframe">Link Name</a>
<a href="page.html" target="iframe"><img src="pic.jpg"></a>

Saffi
05-11-2003, 01:05 AM
Whups... urm yeah.. the code would help *blushes*

sorry bout that...

this is what my I-frame code looks like right now

<*iframe name="main" src="home.htm" align="top" height="450" width="480" vspace="10" hspace="10">
If you can see this your browser does not support iframes!<*/iframe>

and my link code has done this

<*A href="Samplelink.htm"><*IMG NAME="Image24" SRC="takeme_3x1.gif" WIDTH="153" HEIGHT="63" BORDER="0"><*/a>

<*A href="Samplelink.htm" target="main"><*IMG NAME="Image24" SRC="takeme_3x1.gif" WIDTH="153" HEIGHT="63" BORDER="0"><*/a>

<*A href="Samplelink.htm" target="_main"><*IMG NAME="Image24" SRC="takeme_3x1.gif" WIDTH="153" HEIGHT="63" BORDER="0"><*/a>

the images are in a table... kinda like an image map but not quite.

-saff

Elentari
05-11-2003, 02:57 AM
There's a couple of things off with your code that you have to fix. Firstly you don't need those *'s... and neither do the links......and that "If you can see this your browser does not support iframes! should really be inbetween two <noframes></noframes> tags....... Otherwise, just make the format like mine and see if it works.


Do you have a link I can see this on?

Saffi
05-11-2003, 01:46 PM
Actually, it's not online right yet.

i'm working on getting some webspace atm which isn't on a free server, since they all like to crash on me, or cause really bad problems for my computer.

What this is... is that i've just gotten into making graphics and layouts. The I-frame is for one such layout.

I hope to get some of my stuff up soonish, but it depends on my server and stuff.

Thanks for the help! you'll probably see a bunch of me.

-saff

Saffi
05-11-2003, 01:56 PM
Ok.. sorry for the double post, but I didn't realize there was a time limit on my edits of the posts I make.

Thank you very much for your help! It worked beautifully!

oh, and the *'s in the code I put there when I copied the code to here because I didn't know how to put the quote lines around it like you did and I didn't want the code to work. :-/ sorry

-saff

starlet
05-11-2003, 02:54 PM
You can just post html here...its 'disabled' so we see it, no need for the *'s and stuff :)