Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > Adding Elements To Your Website

Notices

Adding Elements To Your Website Discussions, help & troubleshooting about adding templates, backgrounds, images, text, iframes, scroll bars, marquees, flash, video, music, HTML Code, shapes, lines, java scripts, and all other elements. Etc… etc…

Reply
 
Thread Tools
  #1  
Old 10-15-2009, 06:48 PM
Corporal
 
Join Date: Sep 2009
Location: Lydenburg; South Africa
Posts: 17
Default Rotating banner - is daily rotation possible?

Hi there
If it is possible, please help with tips to do the following:
I would like to add a rotating banner containing 7 pictures (each of which need an external link) - the banner only needs to rotate every 24 hours. Is there such an application?
Thanks in advance!
__________________
Alison
http://www.where-to-stay-southafrica.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10-15-2009, 08:42 PM
Special Status
 
Join Date: Nov 2007
Posts: 435
Default Re: Rotating banner - is daily rotation possible?

Is the 24 hour-gap between the seven images.

For example, if you display one image today,
the next in line will get displayed after 24 hours.

So the first one will get its turn again after 7 days.

Is that what you meant?

If not, then could you explain in more detail?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 10-15-2009, 09:27 PM
Special Status
 
Join Date: Nov 2007
Posts: 435
Default Re: Rotating banner - is daily rotation possible?

Or

You want to display one image for the whole 24 hours.
And that would be one image for the whole Internet world to see
for that day?

And then the second day, the second one.

and so on. So on the 8th day, the process repeats itself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 10-15-2009, 09:51 PM
Corporal
 
Join Date: Sep 2009
Location: Lydenburg; South Africa
Posts: 17
Default Re: Rotating banner - is daily rotation possible?

yes, that's exactly what I mean - each of the seven images are viewed one per day for 7 days.........all starts over again on day 8 - same images in same rotation!!!!
__________________
Alison
http://www.where-to-stay-southafrica.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 10-19-2009, 04:41 PM
Corporal
 
Join Date: Sep 2009
Location: Lydenburg; South Africa
Posts: 17
Default Re: Rotating banner - is daily rotation possible?

Please help - can nyone let me know if this is possible?
Tx
__________________
Alison
http://www.where-to-stay-southafrica.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 10-20-2009, 10:17 AM
Collectors-info's Avatar
General
 
Join Date: Feb 2006
Location: London (UK)
Posts: 7,534
Default Re: Rotating banner - is daily rotation possible?

Place the script below in a html box on your page. Then change the parts in red for your image url's.
Only the 20th & 21st will work at the moment.

<script>
<!--
var today_obj=new Date()
var today_date=today_obj.getDate()

var tips=new Array()
//Configure the below variable to contain the "header" of the tip
var tiptitle=''

//Configure the below array to hold the 31 possible tips of the month
tips[1]='Tip for day 1 here'
tips[2]='Tip 2 goes here'
tips[3]='Tip 3 goes here'
tips[4]='Tip 4 goes here'
tips[5]='Tip 5 goes here'
tips[6]='Tip 6 goes here'
tips[7]='Tip 7 goes here'
tips[8]='Tip 8 goes here'
tips[9]='Tip 9 goes here'
tips[10]='Tip 10 goes here'
tips[11]='Tip 11 goes here'
tips[12]='Tip 12 goes here'
tips[13]='Tip 13 goes here'
tips[14]='Tip 14 goes here'
tips[15]='Tip 15 goes here'
tips[16]='Tip 16 goes here'
tips[17]='Tip 17 goes here'
tips[18]='Tip 18 goes here'
tips[19]='Tip 19 goes here'
tips[20]='<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
tips[21]='<img src="http://www.vodahost.com/vodatalk/vb3bluesaint/misc/logo.gif" alt="">'
tips[22]='Tip 22 goes here'
tips[23]='Tip 23 goes here'
tips[24]='Tip 24 goes here'
tips[25]='Tip 25 goes here'
tips[26]='Tip 26 goes here'
tips[27]='Tip 27 goes here'
tips[28]='Tip 28 goes here'
tips[29]='Tip 29 goes here'
tips[30]='Tip 30 goes here'
tips[31]='Tip 31 goes here'

document.write(tiptitle)
document.write(tips[today_date])
</script>
__________________
Regards Chris,
Sites are view in FF & IE, with res @ 1024 x 768 on 19” screens.

Barnet walks
How to ask for help on the forum. - VH prices. - BV Tutorials. - Using PIXresizer - Image/Photo Tips -
Collectables, Collecting


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 10-20-2009, 09:47 PM
Special Status
 
Join Date: Nov 2007
Posts: 435
Arrow Re: Rotating banner - is daily rotation possible?

Another flavor of what you need, perhaps?

You can tweak it to your liking.

I will test it tomorrow and the next day to see if it correctly
picks up the day and displays the image accordingly.

Obviously you have to change the images and URL.

As you can see, target is set to _blank for all URLs.

You can remove the document.writeln two statements if you want.

As you can see new date is picked up ONLY when the page is refreshed.

Otherwise, you can bring it into the loop. However, that would be an
overkill.

I modified BlueVoda logic for rotating images.

<script language="JavaScript" type="text/javascript">

var RotatingImage1_Images = new Array(1);
var RotatingImage1_URLs = new Array(1);
var RotatingImage1_Targets = new Array(1);
var weekday = new Array(1);

var RotatingImage1_Index = 1;

RotatingImage1_Targets[1] = "_blank";

var d=new Date();
var dnum=d.getDay();


switch (dnum)
{
case 0 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-bv.gif";
RotatingImage1_URLs[1] = "http://www.vodahost.com/partner/idevaffiliate.php?id=8418_1_1_69";
weekday[1]="Sunday";
break;

case 1 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-vh.gif";
RotatingImage1_URLs[1] = "http://www.vodahost.com/partner/idevaffiliate.php?id=8418_0_1_139";
weekday[1]="Monday";
break;

case 2 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-gp.gif";
RotatingImage1_URLs[1] = "http://www.vodahost.com/partner/idevaffiliate.php?id=8418_10_1_90";
weekday[1]="Tuesday";
break;

case 3 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-sb.gif";
RotatingImage1_URLs[1] = "http://www.seobook.com/3578-1-1-26.html";
weekday[1]="Wednesday";
break;

case 4 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-wc.gif";
RotatingImage1_URLs[1] = "http://www.webceo.com/cgi-bin/go/clickthru.cgi?id=wysiwyg4";
weekday[1]="Thursday";
break;

case 5 :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-bv.gif";
RotatingImage1_URLs[1] = "http://www.vodahost.com/partner/idevaffiliate.php?id=8418_1_1_69";
weekday[1]="Friday";
break;

default :
RotatingImage1_Images[1] = "http://www.mywebsiteworkout.com/ad-rotator-vh.gif";
RotatingImage1_URLs[1] = "http://www.vodahost.com/partner/idevaffiliate.php?id=8418_0_1_139";
weekday[1]="Saturday";
}

function RotatingImage1ShowNext()
{
eval("document.RotatingImage1.src = RotatingImage1_Images[" + RotatingImage1_Index + "]");
RotatingImage1ShowNext();
}

function onRotatingImage1Click()
{
targetwin = RotatingImage1_Targets[RotatingImage1_Index];
eval("window.open(url = RotatingImage1_URLs[RotatingImage1_Index],'" + targetwin +"');");
}

document.writeln("<PRE>Image for " + weekday[1]);
document.writeln("</PRE>");

</script>
<a href="#" onClick="onRotatingImage1Click();return false;">
<img src="http://www.mywebsiteworkout.com/ad-rotator-bv.gif" id="RotatingImage1" border="0" align="top" width="468" height="60" name="RotatingImage1"></a>

<script>
RotatingImage1ShowNext();
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 05:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203