SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Hybrid View
-
Feb 3, 2002, 15:52 #1
- Join Date
- Feb 2001
- Location
- Clearwater, FL
- Posts
- 3,615
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
how do I get a link within an iframe to display on my main page ?
I have a problem..I was using DHTML and CSS Layers until my client pointed out that he was very computer illiterate and wants a very BASIC layout that he can understand (read: simple)
Original Page: http://www.rolanddescombes.com/studio/gallery2.asp
New Page: http://www.rolanddescombes.com/studio/gallery.asp
Yeah, its in an iframe, what's even worse is that page is in a frameset! Anyways, that's a whole different story.
I need the link from the iframe to be displayed in the main page (and not in the iframe) and I can't figure out how to do it?
Any ideas?
-
Feb 3, 2002, 18:09 #2
- Join Date
- Feb 2000
- Location
- where the World once stood
- Posts
- 700
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi
did you try something like this?
<a href="#" onMouseover= "top.location='http://members.aol.com/grassblad'">dfdfd</a>
'top' should refer to the topmost frame/window. If your iframe were composed of frames, you may have to try: top.top.location
VinnyWhere the World Once Stood
the blades of grass
cut me still
-
Feb 3, 2002, 23:25 #3
- Join Date
- Feb 2001
- Location
- Clearwater, FL
- Posts
- 3,615
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I will give it a shot..Thanks
-
Feb 3, 2002, 23:39 #4
- Join Date
- Feb 2001
- Location
- Clearwater, FL
- Posts
- 3,615
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That seems to just load up the page again when its clicked. Here is my code in the iframe
Code:<a href="#" onMouseOver="top.location='http://www.rolanddescombes.com/studio/gallery.asp'"><img src="/Studio/Assets/product_images/thumbs/Branch.jpg" border="0"></a>
Will this work?
Code:<a href="#" onMouseOver="top.location.ImageLyr='/Studio/Assets/product_images/thumbs/Branch.jpg"><img src="/Studio/Assets/product_images/thumbs/Branch.jpg" border="0"></a>
-
Feb 4, 2002, 13:53 #5
- Join Date
- Feb 2000
- Location
- where the World once stood
- Posts
- 700
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, maybe I'm confused (been known to happen
Which of the following are you are trying to do?
1) replace the main document with the image in the iframe?
2) replace a div/layer in the main document with the image in the iframe?
3) pop a window with the image in the iframe?
4) replace an image tag in the main document with the image in the iframe?
5) option 1 above, but with the iframe still on the page.
when I went to the 'new page' you posted, the first option (above) occurred.
remember: you have to have 'someplace' to put the image.
VinnyWhere the World Once Stood
the blades of grass
cut me still
Bookmarks