[Ask] Expandable Banner - PHP

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back