jwwceo Posted August 30, 2006 Share Posted August 30, 2006 I am having a hard time wrapping my head around the logic fort this problem. It's probably super easy but I'm new at this so I'm not sure if I'm going in the right direction...I need to find the row and column number for every image in a product gallery.what's the best way to do this..I know I can start with a while loop for every item in the database...and...$row = 0;$column = 0;and increment based on some if statements..but the exact syntax is evading me..any help would be great! Quote Link to comment Share on other sites More sharing options...
trq Posted August 31, 2006 Share Posted August 31, 2006 [quote]I need to find the row and column number for every image in a product gallery[/quote]Im not sure I follow. Do you mean database row and column? Or are you shoemhow refering to html tables? Quote Link to comment Share on other sites More sharing options...
jwwceo Posted August 31, 2006 Author Share Posted August 31, 2006 Check out this page...[url=http://www.liquidcotton.com]www.liquidcotton.com [/url] there is a roll over menu on each item...the javascript I used uses absolute positioning from the top left, so I need to figure out the top and left values for each keyword icon and tell the menus to start there...I know where the first menu goes, as well as how far between them...so I should be able to figure out the top and left values for every shirt on a page... Quote Link to comment Share on other sites More sharing options...
trq Posted August 31, 2006 Share Posted August 31, 2006 Can we see the php that produces this currently? I really think this might be easier dealt with client side, but we'll see. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.