Help - Search - Members - Calendar
Full Version: Installing Flash code for adverts
Invision Power Services > Community Forums > Community Web Design and Coding
thesludge
Hi could someone help me please and tell me exactly WHERE in IPB this should be in the HEAD of the page at all please??????????????? thumbsup.gif

script LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin


var maxAdNo = 2

var adNo

var myAd = new Array()



myAd[0] = 'PUT CODE FOR IMAGE 1 HERE - Include <img...> tag and link (<a....>)'

myAd[1] = 'IMAGE 2'

myAd[2] = 'IMAGE 3'


// End -->

</script>


Place this in the BODY of the page - basically wherever you want the banners to appear.
CODE
<script LANGUAGE="JavaScript">



<!-- Begin

adNo = Math.round(Math.random() * maxAdNo)

document.write(myAd[adNo])

// End -->

</script>

thumbsup.gif
.Jack
Just whack it in the Wrapper laughing.gif
thesludge
blink.gif

anywhere?

ermm.gif
Michael K.
The first piece should go in your header. The second piece should go wherever you'd want the banner to appear. For instance, if you want it to go below the board header, place it beneath "<% BOARD HEADER %>" in your wrappers. original.gif
thesludge
thanks matey , i have tried it but cant get it to work sad.gif I am new to all of this so maybe i have done it wrong?


thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.