Dreamweaver Graphic enlargment during a mouseover
Hello,
I have been asked to create a webpage that features pagers for a pager company. The pagers are small icons, maybe 100 x 100 pixels or so.
What he wants me to do now is when the user runs the mouse over the graphic, he would like the graphic to enlarge, such as 200 x 200, similar to what OS X does when the user brings their mouse down to the toolbar, and the system enlarges the icon. He wants me to stick the phone number of the company inside the pager's output screen, and people to see it when the icon grows.
Not my idea, but I am just the techie, right?
I am using Dreamweaver MX on OS X.
Thanks,
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
There are two ways to do this, and both involve a little JavaScript. The first way is to have two images - a thumbnail size and a large size - and use JS to swap between them. The second way is to use JS to resize one image - this produces worse results.
I don't know how to do it from Dreamweaver MX 2004, but from the original DW MX, it's very easy. Simply go to the Insert menu and select Interactive Images and then Rollover Image. Enter the filenames of the small thumbnail image and the larger version. Tada!
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Hello Dani,
Thank you for the thoughts.... but is that going to make a quick "woosh" effect, or are there ways to install "frames" so that I can have orig... orig x 5 percent larger.... orig x 10 percent... so that it looks like it is growing?
Thanks a bundle.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
Hello,
Thank you for the offer -- I didn't think about an animated GIF increasing the size of the pager... would have to lay that one out a bit.
I found a freeware OS 9 Animated giffer that will let me run with 4 images... haven't found one for OS X.
I may ask you about that yet.
Thanks.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57