dreamweaver course london - layers
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver course london - Layers

dreamweaver course london - Layers

The UK's most regular instructor-led training courses.
Training information: dreamweaver course london · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Layers

Karen has attended:
Dreamweaver 8 Introduction course

by - delegate Karen [3 posts] (2007 Sep 25 Tue, 12:47) replyReply

have created a menu on the left hand side of my page and I want to create dropdown options which appear under them either when you click on the main heading or when you hover over it with your mouse. How do I do this as at the moment I can only create ones that are there all the time.

Dreamweaver 8 Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
8 2008 Oct 21 Tue Southwark 0 FULL    
8 2008 Oct 28 Tue Bloomsbury 0 FULL    
8 2008 Nov 18 Tue Southwark 0 FULL    
8 2008 Nov 24 Mon Bloomsbury 0 FULL    
8 2008 Nov 25 Tue Bloomsbury 0 FULL    
8 2008 Dec 16 Tue Southwark 0 FULL    
Full Schedule: See all 18 Dreamweaver 8 Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: Layers

by - trainer Rich platinum contributer[718 posts] (2007 Sep 25 Tue, 17:29) replyReply

Karen,

This is indeed a tricky one!

Around this web site, we use javascript functions to accomplish this, and because it's all viewable in our source code, there is no need to hide it away from you or anyone else!

First, save this into a javascript file (eg. global.js)



var supported = (document.getElementById || document.all);
if (supported) {
// set all to be initally false (ie. not shown / none)
var max = 7;
var shown = new Array();
for (var i=1;i<=max;i++) {
shown = false;
}
}

function blocking(i) {
if (!supported) {
alert('Sorry, this link does not work in your browser.');
return;
}
// reverse current state
shown = (shown) ? false : true;
// set css display value
current = (shown) ? 'block' : 'none';
// set
currentimg = (shown) ? 'on' : 'off';
if (document.getElementById) {
document.getElementById('comment_'+i).style.display = current;
}
else if (document.all) {
document.all['comment_'+i].style.display = current;
}
}

Then, whenever you want an 'expand' doovy, use this code:



<a href="" onClick="blocking(RANDOM NUMBER); return false">Click me to expand</a>
<div class="comment_off" id="comment_RANDOM NUMBER">
Whatever you want to reveal here
</div>

Then ensure you have this CSS code on all your pages



comment_off {
display: none;
}

You'll also need to link your HTML file to the javascript file in the HEAD part of your document (template is best), like this:
<script language="javascript" type="text/javascript" src="/asset/script/global.js"></script>

This assumes your javascript file is in a folder asseet/script.

Hope this helps!

Regards, Rich


Related articles

· Learn How to Build Complete Websites in Three Days
· Special Image Techniques with Dreamweaver CS3
· Macromedia Dreamweaver Vs Microsoft FrontPage
· The Evolution of Macromedia DreamWeaver
· Advantages Of Using Dream Weaver To Design Web Pages

Dreamweaver tip:

Testing a site

When developing a site, you have to cater to the widest possible audience allowing for users with different browsers and display settings.
Test pages to see how they look with:

- different display resolutions
- browser with graphics turned off
- many different browsers not just IE
- if possible different operating systems.

View all Dreamweaver hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz