Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 30th, 2003, 05:39 PM
zigipigi zigipigi is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 zigipigi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1 link 2 targets

Hi
I have problem. There is page with frame set: top, bottom, main and left. I hawe jpg picture in bottom frame and i want htat after click on it new pages apears in left and main frame... Could any one tell me how to do that?
Regards

Reply With Quote
  #2  
Old December 31st, 2003, 01:27 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You'll need javascript to do that. Try this code out in your bottom frame.
Code:
<script type="text/javascript">
function doLink() {
  fraLeft.location.href='left.htm' // assuming your left frame is called 'fraLeft'
  fraMain.location.href='main.htm' // assuming your main frame is called 'fraMain'
}
</script>
<img src="images/blah.jpg" onclick="doLink()">


I haven't tested it, but should be fine
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old October 25th, 2006, 03:19 PM
jdmcmah jdmcmah is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 2 jdmcmah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 2 sec
Reputation Power: 0
Is It Possible To Do The Same Thing With IFRAME?

Hello,

I was wondering if it was possible to do the same thing with an IFRAME. I would like to click on some text and have one frame switch two windows.

Thanks!
John

Quote:
Originally Posted by stumpy
You'll need javascript to do that. Try this code out in your bottom frame.
Code:
<script type="text/javascript">
function doLink() {
  fraLeft.location.href='left.htm' // assuming your left frame is called 'fraLeft'
  fraMain.location.href='main.htm' // assuming your main frame is called 'fraMain'
}
</script>
<img src="images/blah.jpg" onclick="doLink()">


I haven't tested it, but should be fine

Reply With Quote
  #4  
Old October 26th, 2006, 09:07 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Yes, using the same technique Stumpy suggested four years ago...

to update the code slightly, a modern DOM example would use:
document.getElementByID('fraLeft').location.href=' left.htm'
document.getElementByID('fraRight').location.href= 'right.htm'
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #5  
Old October 27th, 2006, 11:15 AM
jdmcmah jdmcmah is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 2 jdmcmah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 2 sec
Reputation Power: 0
Talking Still confused...

Thanks for the response. I was able to figure out how to do the switch- but I don't want it to be linked to an image- I'd like to use (gasp) text! I was able to achieve this using SPAN- but is there any way to make the links look and act like links? Currently, I can only get the cursor to switch.

Thanks!
John

Last edited by jdmcmah : November 1st, 2006 at 11:27 AM. Reason: Somewhat Figured It Out...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > 1 link 2 targets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT