View Single Post
11-14-2007, 01:40 PM
#3
CreativeLogic is offline CreativeLogic
CreativeLogic's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 1,078
iTrader: 6 / 100%
 

CreativeLogic is on a distinguished road

Send a message via MSN to CreativeLogic

  Old

This is the incorrect code:
Code:
if(i < 10) {
	bigImage = image.src.substring(0, image.src.indexOf("_")-1);
} else {
	bigImage = image.src.substring(0, image.src.indexOf("_")-2);
}
It should simply just be:
Code:
bigImage = image.src.substring(0, image.src.indexOf("_")-1);