Need a code to call html codings

Discussion in 'HTML & Website Design' started by csetube, Mar 16, 2013.

  1. #1
    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 ?
     
    csetube, Mar 16, 2013 IP
  2. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #2
    you can user below html code for each ad.

    <img src="yourpath/addname.jpg" width="468" height="60"/>
     
    creativewebmaster, Mar 16, 2013 IP
  3. ecolatur

    ecolatur Well-Known Member

    Messages:
    1,141
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #3
    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.
     
    ecolatur, Mar 16, 2013 IP
  4. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    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....
     
    csetube, Mar 16, 2013 IP
  5. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #5

    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.
     
    Last edited: Mar 16, 2013
    dlb, Mar 16, 2013 IP
  6. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #6
    Mine has only html support..
     
    csetube, Mar 16, 2013 IP
  7. matt_62

    matt_62 Prominent Member

    Messages:
    1,827
    Likes Received:
    515
    Best Answers:
    14
    Trophy Points:
    350
    #7
    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
     
    matt_62, Mar 16, 2013 IP
  8. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    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...
     
    csetube, Mar 16, 2013 IP
  9. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #9
    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.
     
    deathshadow, Mar 16, 2013 IP