Old 07-02-2007, 18:35   #1 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
Javascript problems

Basically I have my project image load on the left, and when you click on the numbers below and on the right of the image, the corresponding image should load where the original one is.

The test site is at:
aestheticphiladelphia.com/cfportfolio/portfolio/agizentest2.php

and I got the code from:
alistapart.com/articles/imagegallery

I'm not that experienced in Javascript. Can anyone see what i'm doing wrong or know a better way to do it?
  Reply With Quote
Old 07-02-2007, 19:00   #2 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
in your source, line 35 remove the " » " character ALA uses for line breaks and your laughing. Straight up copying can be a cunt, huh?
  Reply With Quote
Old 07-02-2007, 20:23   #3 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
haha damn, how didn't I see that!

thanks man, i really appreciate it. you have no idea how many hours I spent trying to find another way!
  Reply With Quote
Old 07-02-2007, 20:45   #4 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
no problem. You should look into a javascript debugger.. if you are on FireFox get the web developer extension and there is one built in. That would of told you exactly where your code broke.
  Reply With Quote
Old 08-02-2007, 01:09   #5 (permalink)
gkwinspired
Come on IE - GO GECKO!
 
gkwinspired's Avatar
 
Join Date: Jan 2007
Location: Wasilla, Alaska
Posts: 93
Yeah - I love the web developer - it is awesome
  Reply With Quote
Old 08-02-2007, 09:35   #6 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
Thanks, I never knew about web developer.
I'm going to start using this.
  Reply With Quote
Old 08-02-2007, 10:43   #7 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
web developer is okay, but Firebug's the daddy for javascript
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 08-02-2007, 12:06   #8 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
how likely is it for someone looking at my site to have javascript turned off?

and if it's likely, is there anything I can do to still show the "about" that I should do?
  Reply With Quote
Old 08-02-2007, 14:07   #9 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Quote:
Originally Posted by stickmus
but Firebug's the daddy for javascript
nice one! never knew about that bit. installed.
  Reply With Quote
Old 08-02-2007, 14:29   #10 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
That logo looks a lot like: http://www.astrazeneca.com
  Reply With Quote
Old 09-02-2007, 09:47   #11 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
pgo, it was actually one of their drugs I was working on at the agency i was at for a short time, and it's one of the major reasons that despite liking it, they decided against it.
  Reply With Quote
Old 09-02-2007, 10:03   #12 (permalink)
djeglin
goober :-)
 
djeglin's Avatar
 
Join Date: Dec 2006
Location: Birmingham, UK
Posts: 533
Send a message via MSN to djeglin
Agreed... Firebug is the big daddy for Javascript... and for a number of other things, too... Particularly if you plan on doing any work that manipulates page content or the DOM in any way. It highlights the changes your script makes as it runs... and can show you the completion times, page loads etc of everything you do. extremely clever.
  Reply With Quote
Old 09-02-2007, 12:52   #13 (permalink)
chazthetic
Fucking Awesome
 
chazthetic's Avatar
 
Join Date: Feb 2007
Location: Orlando, Fl
Posts: 513
Send a message via AIM to chazthetic Send a message via Skype™ to chazthetic
this firebug program is amazing, a million thanks for posting that.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8