Topic: Rollover using Layer Behavior (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24656" title="Pages that link to Topic: Rollover using Layer Behavior (Page 1 of 1)" rel="nofollow" >Topic: Rollover using Layer Behavior <span class="small">(Page 1 of 1)</span>\

 
Tarvardian
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jan 2005

posted posted 01-11-2005 17:47

Hi All --

I'm fairly new to all this, and I could really use some help.

Using DWMX04, I want to create a rollover effect on this page (and others like it): http://www.tarvardian.com/HGC/experience/experience_shilitos.htm. On this page, there are thumbnails and next to them will be displayed the larger image of each thumb. I want to allow users to click each thumb and have the larger image displayed in a table cell to the right.

I found a tutorial with an elegant solution to accomplish this (http://dreamweaverresources.com/tutorials/settextoflayer.htm). It calls for me to have an absolutely positioned div placed on the page where I want the larger images to appear. I select a thumb and apply the SetTextofLayer behavior.

Can I add the div to the table cell I've already established to display the larger image? If so how?

I image that I can use PVII's ShowPic, but I'm trying to learn any many new things as I can. Besides, I love the simplicity of the method I found (simple if I can figure out how to do it!).

Any help would really be appreciated.

Thanks,
John

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 01-11-2005 18:42

Hi Tarvardian,

Welcome to the asylum. It's the show that never ends.... You'll find straight jackets in the closet down the hall. I haven't seen a nurse around here for ages, so I don't know who is giving out pills.

<edit>Apparently docilebob is passing out pills in the Photoshop Forum so run on over there and get a supply. Hey db what did you use to break open the medicine cabinet?
</edit>


I assume you're using tables because that's what DreamWeaver creates. You are really going to be better off if you get rid of the tables and use css for creating your design.

As far as your question about adding a <div> to the table cell: yes,you can do that . Put a <div id="pict">content</div> inside the table cell then use JavaScript to change the image in the cell. If you want to use a <div> you can place the image as the background image for the div and just change the picture by changing the background image of the <div>. Actually you could just give the <td> tag an id and change its background image and probably accomplish the same thing.




-- not necessarily stoned... just beautiful.


(Edited by hyperbole on 01-11-2005 18:54)

Tarvardian
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2005

posted posted 01-11-2005 21:09

Hyperpole --

Thanks for the welcome and the help.

Yes, I'm using tables. I'll try what you said, but I don't have much confidence of doing it right. I learned how to do things throught DW's UI. I realize now that was not the best way to learn. As a result, I've pretty bad at hand coding. I'm signed up for a class on HTML basics, but until I get those down...

Thanks again, though. I'll certainly give it the ol' college try!

John



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu