Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-02-2011, 07:30 PM   PM User | #1
marilynn.fowler
Regular Coder

 
Join Date: Aug 2002
Location: San Francisco
Posts: 442
Thanks: 19
Thanked 15 Times in 15 Posts
marilynn.fowler is an unknown quantity at this point
"soldSign" image toggling instead of loading properly

I have a lightbox that I built from a tutorial and am currently tweaking. When the user clicks on the thumbnail of an image that has been sold, the image is supposed to open up with a "sold" sign on top. What is happening instead is that it the sold sign is appearing on every other image, whether or not it's sold.

I've uploaded the experimental HTML file so as not to disrupt the working site:
http://www.brettkaufman.com/EXP.html. The first three images should NOT show the sign; the rest have the "sold" class.

And here is the script: www.brettkaufman.com/mfLightbox/js/EXP.js

I created a variable "linkClass"; it's value gets set on line 53. I added an alert on line 102 just so I could see whether it was updating the linkClass value (it is). I put my IF statement on lines 103-105.

What is my mistake and how can I fix it?
__________________
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx

Last edited by marilynn.fowler; 11-04-2011 at 01:06 AM..
marilynn.fowler is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22 AM.


Advertisement
Log in to turn off these ads.