View Full Version : Wrap Javascript advertisement around text in first post
MentaL
09-16-2009, 09:51 PM
Hi,
Im having trouble getting my adbrite javascript code to wrap correctly, anyone able to help?
Thanks
<!-- message -->
<!--Intergrated advertisement first post guest-->
<if condition="$show['guest'] AND $post[postcount] == 1">
<div style="float:right">
adbrite code
</div>
</if>
<!--Intergrated advertisement first post guest-->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->
MentaL
09-17-2009, 02:11 PM
bumperty bump.
Lynne
09-17-2009, 05:34 PM
Seeing the postbit changes doesn't help since it is the adbright ad that is screwing up. You need to post the code for that also. And, you may try floating the message left since you are floating the ad right.
MentaL
09-17-2009, 06:05 PM
Thanks for the reply, here is the code.
<script type="text/javascript">
var AdBrite_Title_Color = '716648';
var AdBrite_Text_Color = '535353';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
var AdBrite_URL_Color = '247fa7';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.lo cation:document.referrer;AdBrite_Referrer=encodeUR IComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73, 80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1343006&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67, 82,73,80,84,62));</script>
<div style="text-align: center;"><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1343006&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>
Lynne
09-17-2009, 06:07 PM
And you can see in there that they have a div align center. You probably need to modify the javascript to position it correctly.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.