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.

Coding Forum


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



Reply
Trying to streamline mouseover img
Old 09-12-2006, 04:35 PM Trying to streamline mouseover img
Average Talker

Posts: 23
Trades: 0
We just started using a new method for our color charts.
When you mouseover a thumbnail it displays it larger in the box above.

Example
BioShield Kinder Paint


It's Javascript and goes something like this

var color = new Image();

color.src = "filepath"

then the script defining which img is displayed when the page loads

and then the tables

<a onmouseover="doButtons('color)" href="#"><img src="filepath" ect.

This works great for 1 to 5 imgs but some of our products have 10, 20, 30 or more images. It becomes time consuming and a bit of a pain to keep track of where you are.
I am hoping there is a quicker way to do this. I know if I had the skills I could probably make a GUI that just had text boxes for the name, filepath and variable name but I can’t so I was wondering if there was anything simpler available to make this go a little quicker?
yoshimitsuspeed is offline
Reply With Quote
View Public Profile Visit yoshimitsuspeed's homepage!
 
 
Register now for full access!
Old 09-13-2006, 07:13 AM Re: Trying to streamline mouseover img
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
is the page built server side?
__________________
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-13-2006, 01:00 PM Re: Trying to streamline mouseover img
Average Talker

Posts: 23
Trades: 0
Quote:
Originally Posted by chrishirst View Post
is the page built server side?
What do you mean built server side?
yoshimitsuspeed is offline
Reply With Quote
View Public Profile Visit yoshimitsuspeed's homepage!
 
Old 09-13-2006, 01:34 PM Re: Trying to streamline mouseover img
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
using a script ASP, PHP etc
__________________
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-13-2006, 01:38 PM Re: Trying to streamline mouseover img
Average Talker

Posts: 23
Trades: 0
Quote:
Originally Posted by chrishirst View Post
using a script ASP, PHP etc
Yes the site/shopping cart is PHP.
__________________

Please login or register to view this content. Registration is FREE
yoshimitsuspeed is offline
Reply With Quote
View Public Profile Visit yoshimitsuspeed's homepage!
 
Old 09-13-2006, 01:46 PM Re: Trying to streamline mouseover img
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
might be a help is your site didn't have a MySQL error BTW

but building an array of the colours, then looping through the code and generating the onmouseover('script(arrary_ref_no)') would work
__________________
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-13-2006, 04:16 PM Re: Trying to streamline mouseover img
Average Talker

Posts: 23
Trades: 0
Quote:
Originally Posted by chrishirst View Post
might be a help is your site didn't have a MySQL error BTW
Where or what error.

Quote:
Originally Posted by chrishirst View Post
but building an array of the colours, then looping through the code and generating the onmouseover('script(arrary_ref_no)') would work
I am still pretty new to javascript and PHP, could you explain this a little more? It seems like this would be simalar to the way we are doing it now. Would it save time?
__________________

Please login or register to view this content. Registration is FREE
yoshimitsuspeed is offline
Reply With Quote
View Public Profile Visit yoshimitsuspeed's homepage!
 
Old 09-13-2006, 04:41 PM Re: Trying to streamline mouseover img
Extreme Talker

Posts: 246
Trades: 3
If the HTML was being generated from a loop in PHP, it would save time, because you wouldn't have to type each one out.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CouponGuy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Trying to streamline mouseover img
 

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.59458 seconds with 12 queries