View Single Post
  #1  
Old 04-26-2011, 09:49 PM
gemmk1 gemmk1 is offline
 
Join Date: Oct 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I need to centre a banner rotator code please

I need to centre the banner code ive tried adding the <centre></centre> but cant do it.It is a banner roatator code it sits to the left of my forum.I tried the banner rotator mods but could not get them working.This works it just does not sit to the centre

Here is the code thank you

Code:
<script>
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=5; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "http://209.85.12.237/30111/6/0/f5128781/GDAdsBanner.gif"
ads[1].href = "http://gdforum.net"
ads[1].border = "0"
ads[1].mouseover = "Click here to enter the gd forum"
ads[1].sponsor = "best general chat forum around"

ads[2].width = "468"
ads[2].height = "60"
ads[2].src = "http://209.85.12.237/30111/6/0/f5144304/s2f3.png"
ads[2].href = "http://s2fpromotion.co.uk"
ads[2].border = "0"
ads[2].mouseover = "s2f promotion"
ads[2].sponsor = "best free promotion website around"

ads[3].width = "287"
ads[3].height = "60"
ads[3].src = "http://simplythebest.net/images/stbnetmain.gif"
ads[3].href = "http://simplythebest.net"
ads[3].border = "0"
ads[3].mouseover = "Do we need to say more?"
ads[3].sponsor = "Simply the Best"

ads[4].width = "468"
ads[4].height = "60"
ads[4].src = "http://i42.photobucket.com/albums/e303/jlmf/logo-2.gif"
ads[4].href = "http://strangers2friends.co.uk"
ads[4].border = "0"
ads[4].mouseover = "friendship and support forum"
ads[4].sponsor = "strangers 2 friends"



var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n><br>Please visit our sponsor: ' + image.sponsor + '</a>'
</script>




<script language="JavaScript">
<!-- hiding this script
document.write(ad)
// -->
</script>

Thank you in advance
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01195 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete