Results 1 to 8 of 8

Thread: Changing the banner on all the pages

  1. #1
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing the banner on all the pages

    Is there a code I can use so I can change the banner on all the pages at the same time?? Cause I know the code to change the layout on all the pages at the same time. And its a time saver. So I want to do it with the banner. Is there a way??

    is there a way to put in here:

    http://www.freewebs.com/orlibloomworld/obwlayout.css

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Depends on the variables...

    How do you have your banners loaded now? What about them do you want to change?

    For example if it is the whole thing you want to change, why not make a new banner with the same dimensions and save it as the same name as the old one, overwrite when you upload?

    Bad example I know, but you get the idea.

    And yes, from what I remember you can do this with .htaccess and maybe php as well.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this is how my banner is now
    http://www.freewebs.com/orlibloomwor...loomWorld.html

    Yes I want to change the whole thing.

  4. #4
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any one??

  5. #5
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok can some one please give me the code if they know it?? I REALLY NEED IT

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your links are not coming up at the moment so I cannot say anything about your specific layout and style.

    However, to answer your original question in a general way, yes. There is a way to change banners with a single change to a css stylesheet, if the banner can be the background image to a division:

    Code:
    div#banner {
    width:250px; /*set to width of banner*/
    height:100px; /*set to banner height*/
    background-image:url('path/filename.jpg');
    }
    Then you can have a division on each page:

    HTML Code:
    <div id="banner"></div>
    and it will show the banner configured in the style section. If you need a linked banner and the link would change along with the image used, then you will probably be best off using a server side include. Javascript could do this too but is less reliable as, not everyone has javascript enabled. If javascript is used, a default banner could be made available to those folks surfing without javascript.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh none of the pages work cause ive deleted them.

    thanks

  8. #8
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Another way you could do this is with PHP. In a file caled header.php

    say something like,
    PHP Code:
    <?php 
    echo "<img src=".../../.../whatever.jpg" />" ;
    ?>
    Then in all your files add a
    PHP Code:
    <?php
           
    include 'header.php' ;
    ?>
    and voila! A more in depth explination can be found here, http://www.dynamicdrive.com/forums/s...ad.php?t=18044

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •