PDA

View Full Version : Adding a scroll bar for a picture gallery


dreamer80
02-23-2007, 02:23 AM
Here are some sites that have what I am looking for. Someone suggested a site that kind of explains how to, but it doesn't come up right. Can someone please help me. I have been trying to do this for so long and I'm starting to lose it. I've asked around and can't get it to work. Please please please?

I only use the Design feature of Dreamweaver, so speaking in "code" will be lost on me. I can add already created code and mess with it a little bit, but not that much.

Thanks :-)

http://www.veronicachanel.com/beautyportfolio.html

http://home.comcast.net/~grumblecat/gallery1.htm

kona72
02-23-2007, 03:15 AM
Hi Dreamer,

Try having a look at this tutorial....


http://www.dreamweaverclub.com/css-scroller.php


This is css based.. what you need is an I-frame.. if you google i-frame you will get all kinds of tut's to help you out.

edbr
02-23-2007, 04:43 AM
it can be with css, using an absolute div and nesting a relative div inside it.

add to a page between <head> and </head>

<style>
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
overflow: scroll;
}
#Layer2 {
position:relative;
width:600px;
height:115px;
z-index:2;
}
-->
</style>and then this in the body

<div id="Layer1">

<div id="Layer2">
<img src="/images/image_1.jpg" width="200" height="115" />
<img src="/images/image_2.jpg" width="200" height="115" />

</div> <!-- end layer 2 -->

</div> <!-- end layer 1 -->try playing around with that. It is better to use css as an external link but this might give you something to work on for now

domedia
02-23-2007, 12:43 PM
Kona, using iframe only to add scrollbars is overkill, the article you linked to requires not iframe.
Ed, Check out the link from Kona, it's basically the same, but using only one div. Although I see you're really getting the CSS down, thumbs up!

dreamer80
02-23-2007, 11:21 PM
you guys are my flippin idols!!!! Thank you soooooooo much! I have been trying to get this forever. You're the best!!!!

edbr
02-24-2007, 04:16 AM
sorry! just saw the iframe part