Jump to content


Photo

Help with this logic....


  • Please log in to reply
3 replies to this topic

#1 jwwceo

jwwceo
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts

Posted 30 August 2006 - 11:57 PM

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!

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 31 August 2006 - 12:03 AM

I need to find the row and column number for every image in a product gallery


Im not sure I follow. Do you mean database row and column? Or are you shoemhow refering to html tables?

#3 jwwceo

jwwceo
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts

Posted 31 August 2006 - 12:10 AM

Check out this page...www.liquidcotton.com

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...





#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 31 August 2006 - 12:29 AM

Can we see the php that produces this currently? I really think this might be easier dealt with client side, but we'll see.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users