Dynadot — .com Registration $8.99

[Ask] Expandable Banner - PHP

Spaceship Spaceship
Watch

xrvel

i love automationVIP Member
Impact
165
There are 4 banner spaces :

Code:
[A]  [B]  [C]  [D]

Usual banner only takes 1 space.
But i want the user to order more than 1 space and expandable.
For example if user chooses [A] position, he /she can expand the banner into (for example) 2 spaces
Code:
[   A   ]  [C]  [D]

And if user chooses position, he / she can expand the banner into (for example) 2 spaces
Code:
[A]  [   B     ] [D]

If he / she chooses and expands 3 spaces
Code:
[A]  [        B      ]

In my current code, i store "expand" in my database. For example if "expand" column is 1, banner will take 1 more space.

Space only can be expanded in right direction.

Anyone knows the algorithm?

Thanks.
Kurniawan.
 
1
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back