Hendrizius
07-14-2007, 01:53 PM
I would like to set up a script that changes, when Users change the style. This could be used for Advertising, changing the colour, when the Skin changes.
I am using 3 different styles so it should have an if, else, elseif function. But I am really not sure how to set it up.
Style IDs: 16, 15 and 31
Code 16:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Code 15:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Code 31:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-14: Welcome Area AD
google_ad_channel = "5574964608";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Help is appreciated. I could paste the Code into my VB-Admanagement then easily and optimize the look of all my styles :).
So to put it into a nutshell:
If Style ID = 16 then Code 16
else if Style ID = 15 then Code 15
else if Style ID = 31 then code 31
Thank you,
Hendricius
I am using 3 different styles so it should have an if, else, elseif function. But I am really not sure how to set it up.
Style IDs: 16, 15 and 31
Code 16:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Code 15:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Code 31:
<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-14: Welcome Area AD
google_ad_channel = "5574964608";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Help is appreciated. I could paste the Code into my VB-Admanagement then easily and optimize the look of all my styles :).
So to put it into a nutshell:
If Style ID = 16 then Code 16
else if Style ID = 15 then Code 15
else if Style ID = 31 then code 31
Thank you,
Hendricius