Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Can this be done with CSS?
Old 09-04-2008, 11:17 AM Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Hi there,

I've found an example layout of what I'm trying to achieve on a page.

the link is here just the html and css loaded with no images...

Basically, the small thumbs on the right need to change the larger image on the left when clicked and also the description underneath.

can this be done with only CSS or am I gonna have to stick some javascript in there as well?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-04-2008, 11:31 AM Re: Can this be done with CSS?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Well, part of it can be done with CSS, check out pure CSS Popups:
http://meyerweb.com/eric/css/edge/popups/demo2.html

To achieve everything you want, you're likely going to need a bit of JS
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-04-2008, 11:38 AM Re: Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thanks LadynRed - Can anyone point me to an appropiate javascript tuorial?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 09-06-2008, 01:29 AM Re: Can this be done with CSS?
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Hi Darren

I think this http://www.webmasterworld.com/forum10/3606.htm should help.
extract from the thread

Quote:
forgot to say that the first script changes an img from a secondary location
it requires 2 img to show for ex : a and b, clicking a change b
Not sure if its what your looking for but it may help.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 09-06-2008, 04:07 AM Re: Can this be done with CSS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's called a "disjointed rollover" if you want to have a search for one.

and there is code in ->
http://www.candsdesign.co.uk/page-te...ery/layout.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2008, 06:55 AM Re: Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thanks Chris, this is exactly what I've been looking for1
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 09-08-2008, 07:24 AM Re: Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Chris, can you help with modifying the code please...?

I've changed the onmouseover to onclick and removed onmouseout hide image because I want the user to click on the thumb and the text stays until they click another one.

How do I stop it opening up the new page straight away?

I want to have a link at the bottom of the text paragraph to jump them to the relevant link.

(Hope that makes sense!)
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 09-08-2008, 07:32 AM Re: Can this be done with CSS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not a problem.

Going away from my desk for a couple of hours shortly but I'll knock something together and post when I get back.

Keep meaning to code an AJAX version of it as well
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2008, 08:43 AM Re: Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thanks matey - appreciate it!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 09-08-2008, 03:23 PM Re: Can this be done with CSS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
replace the href url with "#" in all the links and add this code into the ShowImage(picCode) function
Code:
var l_oImgLink = document.createElement("a");
	l_oImgLink.setAttribute("href",picArray[picCode]);
	l_oImgLink.setAttribute("title",txtArray[picCode]);
	l_oImgLink.innerHTML = "Show full size image";
document.getElementById('img_text').appendChild(l_oImgLink);
BTW bit later than planned the other half decided to go shopping seeing as "we are already in town"!!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 09-08-2008 at 03:25 PM..
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2008, 03:58 PM Re: Can this be done with CSS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just to add the code as above will show the preview sized image

and the working version is at
http://www.candsdesign.co.uk/page-te...ry/layout2.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2008, 04:28 PM Re: Can this be done with CSS?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Brilliant, Brilliant, Brilliant!

Hope she bought you something nice Chris!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can this be done with CSS?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.83369 seconds with 12 queries