dreamweaver course - 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 - Layers

dreamweaver course - Layers

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

resolvedResolved · Low Priority · Version Standard

Layers

by - delegate Stephen [16 posts] (2007 Oct 31 Wed, 08:52) replyReply

Hi, I've created a web page with lots ( 160 thumbnail photos )
Is there any way to select all thumbnails and so that when the mouse hovers over any thumbnail a small layer that I've created appears with a message to click that picture to enlarge, rather than do this process 160 times ?
Thanks
Regards

Dreamweaver 8 Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
8 2008 Sep 16 Tue Southwark 0 FULL    
8 2008 Sep 23 Tue Bloomsbury 0 FULL    
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 25 Tue Bloomsbury 0 FULL    
Full Schedule: See all 19 Dreamweaver 8 Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: Layers - alt, title or tooltips

by - trainer Rich platinum contributer[713 posts] (2007 Oct 31 Wed, 09:36) Edited on 2007 Nov 8 Thu, 09:22 replyReply

Hi Stephen,

To do this, I wouldn't use Layers as such. I'd either use:

1) 'alt' and 'title' text like this:
<img src="thumnail01.jpg" title="click to enlarge" alt="click to enlarge">

The ALT tag usually pops up when hovered in Internet Explorer. The TITLE tag usually pops up when you hover over in FireFox. But neither of these are guaranteed.

2) A free Javascript 'tooltip' pre-written script like this one:
http://www.walterzorn.com/tooltip/tooltip_e.htm

This allows you to put some code within your image tags like this:
<img onmouseover="Tip('Click to enlarge')" src="thumbnail01.jpg">

In either case, you can then use Dreamweaver's 'Find and Replace' tool to replace all occurrences of <img with <img onmouseover="Tip('Click to enlarge')"

This would be a quick way.

Let me know if you want any more info, or questions on the above.

Regards, Rich

RE: Layers - alt, title or tooltips

by - delegate Stephen [16 posts] (2007 Oct 31 Wed, 13:24) replyReply

Thanks,
Could you just elaborate on option 1 on just what I need to do, and the find and replace tool to add to all images

RE: Layers - alt, title or tooltips

by - trainer Rich platinum contributer[713 posts] (2007 Nov 1 Thu, 09:15) Edited on 2007 Nov 8 Thu, 09:24 replyReply

Sure,

For option 1, each image can (and should according to accessability standards) have an 'ALT' parameter, which is a short description of the image. These descriptions are important to people who for example use screen readers - eg. the reader reads the description of the image to the blind person.

Internet Explorer uses the Alt paramater to display a ToolTip when the mouse is hovered over the image. So you can put whatever you want in the Alt paramater to appear when your users hover over the image.

To do this in Dreamweaver, select your image, and look at your Properties Panel. You should see a textbox for 'Alt'.

Because you have so many images on your page, to add an Alt parameter for each image would take a long time. So I'm suggesting you edit the HTML code (switch to View -> Code or View -> Code and Design for split screen).

A basic image tag looks like this:
<img src="thumbnail_01.jpg"> where 'thumbnail_01.jpg' is the actual image filename.

To add a parameter within code view, go to the end of the tag (before the last > sign), press space (you need to separate each parameter with a space), type the parameter name (alt), an equals sign (=) and then the value enclosed in quotes ("click to enlarge"). So you should end up with something like this:
<img src="thumbnail_01.jpg" alt="click to enlarge">

Now, in this case, it doesn't matter which order the parameters appear. So you could also have the ALT paramater at the start, like this:
<img alt="click to enlarge" src="thumbnail_01.jpg" >

And the reason I'm suggesting this is because it will make your 'find and replace' command easier.

Go to Edit -> Find and Replace (or Control+F). The dialogue box that appears lets you change parts of the code. So if you put <img in the 'find' box, and <img alt="click to enlarge" in the 'replace' box, then press 'Replace all' - Dreamweaver will effectively 'add on' the alt tag to every image.

If you don't want to add the alt tag to ALL your images (ie. you have other images that aren't thumbnails), then you may want to just keep pressing 'Find next' and 'Replace' - this allows you to check each bit of code Dreamweaver finds.

Hope this helps.

Let me know how you get on.

Regards, Rich

PS. don't forget that other browsers may not display the ALT parameter as a tooltip - eg. Firefox doesn't. However, you can try using the TITLE paramater in the IMG tag, because browsers like Firefox DO show TITLE as a tooltip - it's best to have both.


Related articles

· Six Reasons to Outsource Dream Weaver Training
· Advantages Of Using Dream Weaver To Design Web Pages
· Special Image Techniques with Dreamweaver CS3
· Macromedia Dreamweaver Vs Microsoft FrontPage
· Macromedia Dreamweaver: An Introduction

Dreamweaver tip:

Css styles

If you are looking for a CSS style for your website / web page and not sure what you want to use, then go to the Csszengarden website, where you can download samples to try.

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