Hello friends. I have developed a site www.csetube.in I have 5 kinds of ad size in it. 468*60 728*90 160*600 300*250 Now I need to know about the coding which I should implement in it, So that a variable such as a,b,c,d,e is assigned to each ad size... When we call them, their respective codes are substituted and the ads are displayed in my site... Is it possible ?
You can do this easily if your page extension is php. Just use the php include where you want the ads to appear. Like <?php include 'a.php'; ?> etc and place the banners in a.php, b.php etc.
Sorry... Mine is not PHP... Its HTML... Cant embed PHP into that.. It will be good if any iframe or a thing like that is used....
You really don't need to be reverting to frames to place a few ads. Use SSI includes, if your host supports PERL. <!--#include virtual="a.html" --> <!--#include virtual="b.html" --> ..And so on. I wouldn't recommend naming them a, b, c either... Save yourself any hassle in the future and give them names so that you can recognise them in an instant (468x60.html). This link has more info on SSI includes.
can I ask who you are hosted with? nearly every host can handle php. to explain how php works, change your .html file to .php and guess what, it works as normal html file! So lets say the file was index.html, change it to index.php and even though its the same it will work like normal html. By default, inside a .php file is html! Then inside the index.php we can "jump into" php and "exit" php at the parts you want to put a little bit of php code. I have done it a few times where I rotate affiliate ads, I might put each ad into different files, and a random number between 1 and 5 is chosen and pulls up the ad accordingly. As a habit, I name all my html files as .php (so that IF i need to put php code inside them in a years time, then links and bookmarks and google search results are all pointing to the same file ) If your host doesnt support php, then perhaps look around for different hosting solutions
Hey bro... Its weebly site editor.... I tought of hosting... but drag & drop is very easy for immediate update... So only asking HTML iframes lik that...
My advice is forget the stupid ads -- it's all one giant massive scam, and it's not like users like myself would EVER see them anyways.