expandable image/layer ?

Javascript coding ..

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 94
Joined: Sun Sep 21, 2003 5:30 pm

Tue Dec 07, 2004 11:19 pm

Hi guys,

May i know how did they accomplish the expand and close image inside a browser.. this is one example from Dell website to show promo items :
http://www1.ap.dell.com/content/product ... bsd&~ck=mn

did they use javascript ?? may i know where to get reference to accomplish this ??

btw, what is this expand and close image feature like in the dell website called ? is it called javascript Panoramic Window expandable ?

please advise.

User avatar
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Wed Dec 08, 2004 7:43 pm

yes using javascript they are toggling the cSS style sheet property of

Code: Select all

//using DOM
var ad = document.getElementById('adid');
ad.style.display = see below..

//on Expand
 display: block;

//on Expand
 display: none;

Post Reply