stucklykchuck
06-04-2008, 07:49 PM
1) Script Title: featured content slider
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
3) Describe problem:
1. i can't get the images to show up as i am referencing them through code so they're not hard coded into the div statement
2. if i leave the .css file as is, only the pagination shows up. if i delete the .slider (position: relative;), i can see text content but the box is double the length.
here's the code i have for problem 1:
- i have the image sources in html set to
<img src="" id="img1">
in my 1.1 code i'm trying to reference the src so i have:
dim img1 as image
img1=new image
value = placeholder.src
img1=value
value is giving me the correct url, but it won't display the image?
problem 2: this is the updated version i have of contentslider.css:
.sliderwrapper{
/*position: relative; /*leave as is*/
overflow: hidden; /*leave as is*/
border: 1px solid black;
border-bottom-width: 1px;
width: 400px; /*width of featured content slider*/
height: 294px; /*started @ 250*/
}
.sliderwrapper .contentdiv{
visibility: hidden; /*leave as is*/
position:absolute; /*leave as is*/
left: 0; /*leave as is*/
top: 0; /*leave as is*/
padding: 5px;
background: blue;
font-weight:bold; /* take out when done kiva:6/3/08*/
width: 390px; /*width of content DIVs within slider. Total width should equal slider's inner width (390+5+5=400) */
height: 100%;
filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
/*-moz-opacity: 1;
opacity: 1;*/
}
.pagination{
width: 382px; /*Width of pagination DIV. Total width should equal slider's outer width (400+10+10=420)*/
text-align: center;
background-color: navy;
padding: 2px 10px;
color: white;
font-weight:bold;
}
.pagination a{
padding: 0 5px;
text-decoration: none;
color: #00007D;
background: white;
}
.pagination a:hover, .pagination a.selected{
color: #000;
background-color: #FEE496;
}
any help is greatly appreciated
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
3) Describe problem:
1. i can't get the images to show up as i am referencing them through code so they're not hard coded into the div statement
2. if i leave the .css file as is, only the pagination shows up. if i delete the .slider (position: relative;), i can see text content but the box is double the length.
here's the code i have for problem 1:
- i have the image sources in html set to
<img src="" id="img1">
in my 1.1 code i'm trying to reference the src so i have:
dim img1 as image
img1=new image
value = placeholder.src
img1=value
value is giving me the correct url, but it won't display the image?
problem 2: this is the updated version i have of contentslider.css:
.sliderwrapper{
/*position: relative; /*leave as is*/
overflow: hidden; /*leave as is*/
border: 1px solid black;
border-bottom-width: 1px;
width: 400px; /*width of featured content slider*/
height: 294px; /*started @ 250*/
}
.sliderwrapper .contentdiv{
visibility: hidden; /*leave as is*/
position:absolute; /*leave as is*/
left: 0; /*leave as is*/
top: 0; /*leave as is*/
padding: 5px;
background: blue;
font-weight:bold; /* take out when done kiva:6/3/08*/
width: 390px; /*width of content DIVs within slider. Total width should equal slider's inner width (390+5+5=400) */
height: 100%;
filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
/*-moz-opacity: 1;
opacity: 1;*/
}
.pagination{
width: 382px; /*Width of pagination DIV. Total width should equal slider's outer width (400+10+10=420)*/
text-align: center;
background-color: navy;
padding: 2px 10px;
color: white;
font-weight:bold;
}
.pagination a{
padding: 0 5px;
text-decoration: none;
color: #00007D;
background: white;
}
.pagination a:hover, .pagination a.selected{
color: #000;
background-color: #FEE496;
}
any help is greatly appreciated