Jump to content

Archived

This topic is now archived and is closed to further replies.

jwwceo

Help with this logic....

Recommended Posts

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!

Share this post


Link to post
Share on other sites
[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?

Share this post


Link to post
Share on other sites
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...



Share this post


Link to post
Share on other sites
Can we see the php that produces this currently? I really think this might be easier dealt with client side, but we'll see.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.