Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

expandable image/layer ?

Javascript coding ..

Moderators: macek, egami, gesf

expandable image/layer ?

Postby Alicia » 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.
Alicia
New php-forum User
New php-forum User
 
Posts: 94
Joined: Sun Sep 21, 2003 5:30 pm

Postby ruturajv » 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;
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.