credenscel
05-29-2008, 03:26 AM
I am using vbadvanced for my front page (site is http://www.wiredonhonda.com
I wanted to add to the big bulletin board section, where it starts with the "welcome to wiredonhonda.com" and then lists all the news/info about the site, a rotating banner.
allow me to elaborate:
Sites like: formulad.com or tunerzine.com use the "rotating banner" for their annoucements and that is what i would like to use on the front page while keeping the right section of the vbadvance module (log in, user cp etc) as they are.
I have the javascript code but when I paste it into the vbadvanced section it does not work. all of these codes are on for this section only:
vB code is On
Smilies are On
code is On
HTML code is On
But: when i put the rotating banner code withing "code" tags then it works but looks something like this
[IMG]http://i33.photobucket.com/albums/d52/credenscel/code.jpg
would you please let me know how i can use the javascript code without the "code" tags because it just doesnt look right. It has the greyed out background and says "code" on top. I look forward to your feedback!
here's the javascript code just in case
<script type="text/javascript">
var imgs1 = new Array("http://www.wiredonhonda.com/photos/eibach08/slides/eibach08001.jpg","http://www.wiredonhonda.com/photos/tonygarciacrx/slides/tonygarciacrx001.jpg","http://www.wiredonhonda.com/photos/tgpraces/slides/tgpraces095.jpg");
var lnks1 = new Array("http://www.wiredonhonda.com/vb/showthread.php?t=1185","http://www.wiredonhonda.com/vb/showthread.php?t=1133","http://www.wiredonhonda.com/vb/showthread.php?t=1079");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",3000);
</script>
<a href=""http://www.wiredonhonda.com/vb/showthread.php?t=1185"" id="adLink1" target="_blank">
<img src="http://www.wiredonhonda.com/photos/eibach08/slides/eibach08001.jpg" id="adBanner1" border="0" width="468"></a>
I wanted to add to the big bulletin board section, where it starts with the "welcome to wiredonhonda.com" and then lists all the news/info about the site, a rotating banner.
allow me to elaborate:
Sites like: formulad.com or tunerzine.com use the "rotating banner" for their annoucements and that is what i would like to use on the front page while keeping the right section of the vbadvance module (log in, user cp etc) as they are.
I have the javascript code but when I paste it into the vbadvanced section it does not work. all of these codes are on for this section only:
vB code is On
Smilies are On
code is On
HTML code is On
But: when i put the rotating banner code withing "code" tags then it works but looks something like this
[IMG]http://i33.photobucket.com/albums/d52/credenscel/code.jpg
would you please let me know how i can use the javascript code without the "code" tags because it just doesnt look right. It has the greyed out background and says "code" on top. I look forward to your feedback!
here's the javascript code just in case
<script type="text/javascript">
var imgs1 = new Array("http://www.wiredonhonda.com/photos/eibach08/slides/eibach08001.jpg","http://www.wiredonhonda.com/photos/tonygarciacrx/slides/tonygarciacrx001.jpg","http://www.wiredonhonda.com/photos/tgpraces/slides/tgpraces095.jpg");
var lnks1 = new Array("http://www.wiredonhonda.com/vb/showthread.php?t=1185","http://www.wiredonhonda.com/vb/showthread.php?t=1133","http://www.wiredonhonda.com/vb/showthread.php?t=1079");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",3000);
</script>
<a href=""http://www.wiredonhonda.com/vb/showthread.php?t=1185"" id="adLink1" target="_blank">
<img src="http://www.wiredonhonda.com/photos/eibach08/slides/eibach08001.jpg" id="adBanner1" border="0" width="468"></a>