|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Rotating pictures
Is there a simple picture rotator that works, that we can use with dreameaver to dynamically rotate/change multiple pictures on a page. Previously I used netobjects fusion, which had this as standard, although we also used a plug in from Appolon.de, that allowed me to select a range of pictures to alternate, time to show them, and allow each picture to link to a different location. All quite simple I am sure, I think this plug in created the relevant javascript. We have tried various bits of Javascript code, so far, but none apparently works properly. It was a surprise to me that dreamweaver does not come with this as standard. My designer tells me that this is no longer the done thing, "nobody uses rotating pictures anymore", so I am not sure that it is just because he does not want to do it. Do I need to resort to flash, which sounds painful.
Many thanks AF |
|
#2
|
|||
|
|||
|
Code:
<script language="JavaScript">
<!-- Begin
var ad_cnt5 = 3;
var now5 = new Date()
var sec5 = now5.getSeconds()
var ad5 = sec5 % ad_cnt5;
ad5 +=1;
if (ad5==1) {
url5=;
banner5="http://image location here.com";
width5="300";
height5="300";
alt5="";
}
if (ad5==2) {
url5=;
banner5="http://image location2 here.com";
width5="300";
height5="300";
alt5="";
}
if (ad5==3) {
url5=;
banner5="http://image location3 here.com";
width5="300";
height5="300";
alt5="";
}
document.write('<center><img src="' + banner5 + '" width=' + width5 + ' height=' + height5 + ' border=0 alt="' + alt5 + '">');
document.write('</center>');
// End -->
</script>
might needa bit of changing but that should work, i got it off another site http://www.htmlbasix.com/banner.shtml
__________________
Free Forum hosting for clans Last edited by edwinbrains : July 6th, 2004 at 03:02 AM. Reason: [code] & [/code] tags added |
|
#3
|
|||
|
|||
|
sorry, ive just thought it would probably make the file size quite big but you could just create a gif
|
|
#4
|
||||
|
||||
|
Sorry I don't have time to make a proper post, but try doing a google search for "javascript slide show". I believe webmonkey.com has a decent tutorial on creating one, or you could find a ready-made script for this somewhere else.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Rotating pictures |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|