PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Web Site Design Software and Tools > Dreamweaver
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 11-20-03, 01:03 PM   #1
webhead1
 
Join Date: Jul 2002
Location: Florida
Posts: 98
Reputation: 5
links in same window???

Hello everyone. am trying to have a linking effect like the following:

www.westcoastchoppers.com

click on bikes

theres a small frame to right, and when you click on link in that right frame window, the pic changes in left larger frame. and yopu can click arrow below to see more pics of same bike. Id like that same type of setup for what Im going to be doing.

When I try to insert frame, it inserts either whole side, top or bottom, not inside table. Any help please. THanks very much.
Tony
webhead1 is offline  
Old 11-20-03, 01:27 PM   #2
BerksWebGuy
Mod Squad
 
BerksWebGuy's Avatar
 
Join Date: Apr 2002
Location: Orlando, FL
Posts: 6,972
Reputation: 243
Its been awhile since I played with frames...but I think this is what you need...something like this:

<a href="bikes/camel_2_el_diablo/a.html" target="left">link</a>
or
<a href="bikes/camel_2_el_diablo/a.html" target="content">link</a>
__________________
www.GoLightMedia.com
BerksWebGuy is offline  
Old 11-20-03, 02:42 PM   #3
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
When in one frame and you want to change the image in another frame via a link:

1) You must name the image in the img tag

2) The JS then looks like this

parent.framename.imagename.src="whatever.jpg"

Where framename is the name of the frame that contains the image and imagename is the name of the image.

Logically - look up to the parent, then down to the other frame, then down to the image, then change the image source.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 11-20-03, 02:47 PM   #4
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
If you want to change the image source in the same frame you are in, or you don't use frames:

document.imagename.src="image.jpg"

And FYI, you can also change the dimensions with:

document.imagename.width=
document.imagename.height=

in case all the images are not the same size.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 11-20-03, 08:09 PM   #5
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
berkswebguy has it right - you use the target attribute. Dreamweaver has a target pulldown in the link property window for this and does a pretty nice job of managing frames.
__________________
Steve
stevel is offline  
Old 11-20-03, 09:55 PM   #6
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
And not do the coding yourself?

Oh yea . . . this is in the Dreamweaver forum. Well . . . in case you want to know how it really works . . . read my above posts . . . then go ahead and do the Dreamweaver thing. I must confess I have never used it.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Closed Thread

Thread Tools

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:24 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.