The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I used this on my ads.
This script is for resolution under 1100 pixels <> (1024x768) and for a resolution above 1100 pixels <> (1280x1024) It eighter places a banner with a width of 350 or 430 pixels. HTML Code:
<script language="javascript" type="text/javascript" src="/templates/high_javascript.js"> <!-- //var iWidth = 0; //var iHeight = 0; //--> </script> <center> <script type="text/Javascript"> <!-- /*initialization for IE! Leave this funtion after the body tag */ /*if(!window.Width && document.body && document.body.offsetWidth) { //window.onresize = recal; //alert("line114!"); Width = windowWidth(); Height = windowHeight(); //alert(Width + "<br>" + Height); //alert("width"); } */ //--> var iWidth, iHeight, sRes; if (window.innerWidth != null) { //alert("first"); iWidth = window.innerWidth; iHeight = window.innerHeight; } else if (document.body.clientWidth != null) { //alert("second"); iWidth = document.body.clientWidth; iHeight=document.body.clientHeight; } else { //alert("third"); } var imgPath = "banner.jpg"; var imgAlt = "Alt text."; if (iWidth <= 1100) { document.write("<a href=http://www.google.comenter a site url target=_new><img src='enter image sourcepath WITHOUT image name!" + imgPath + "' alt='" + imgAlt + "' width='350'></a>"); } else { document.write("<a href=http://www.google.com target=_new><img src='enter image sourcepath WITHOUT image name!" + imgPath + "' alt='" + imgAlt + "' width='430'></a>"); } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|