Jump to content

Help with this logic....


jwwceo

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!
Link to comment
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...



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.