mustamar - around

(one day) you’ll need to hear me. therefore i blog my whole life

My name is Mus, 22 years old. A freelancer, college student, hard thinker, debater, and ordinary person.
Bad-good rider, hi speed admirer, and love blogging so much.

choose a menu
  • Home
  • Profile
  • Photos
  • Everywhere
  • How to randomly change your header image.

    written on : April 22, 2008 – 9:51 am
    by : Mus_

    random image header

    Hey, look at my header image. Try to click any page/post within this blog. You will get different header images almost in every page/post in my blog.

    How to do that? It’s simple, and little bit tricky.

    Read and follow the instructions bellow.

    • You should have at least 2 different images for your blog’s header. Remember that you should have the same image size and the same extension in each images. For example, if you are using an images with .jpg extension, make sure that each image has the .jpg extension.
    • Rename each images with the identical file name but number of file. As my blog’s using 5 images named : potrait_1.jpg, potrait_2.jpg, potrait_3.jpg, potrait_4.jpg, potrait_5.jpg. Put / upload all images in a same directory in your webhosting / server.

    image 1 image 2

    image 3 image 4

    image 5

    • Open your header.php file or any .php file that you desired the image to be shown. Then write this following code to your .php file. :
    • <?php echo(rand(1,5)); ?>

      And here is the example :

      <img src=”http://path-to-images/potrait_<?php echo(rand(1,5)); ?>.jpg”>

    • Save, and put / upload that .php file to the right place / directory in your webhosting / server.
    • Open your blog, then try to refresh or open different page / post within your blog.

    Try again, recheck the code, recheck the path, and recheck image file name, if you experience any errors / problems when following this tutorial.

    Or write your comments bellow.

    posted under category tutorial
    tags: php, trick, tutorial, wordpress trick


    6 comments to “How to randomly change your header image.”

    • tukang foto keliling Says:
      April 22nd, 2008 at 1:44 pm

      nice simple tips…
      thats really useful

    • baliazura Says:
      April 22nd, 2008 at 4:38 pm

      now I know :smile:

    • amril Says:
      April 22nd, 2008 at 7:44 pm

      You’re the “Real Proffessor” Mus!. Thanks for the tips, but I’m still a “gaptek man”..hehehe

    • mamie Says:
      April 22nd, 2008 at 8:16 pm

      genius..!! thank u very much prof. could u please make one more trial on my web? :D

    • ndop Says:
      April 23rd, 2008 at 4:16 am

      emangnya bisa ya.. oo.. bukannya css nya wordpress disuruh beli dulu.. coba saya cek lagi ah..

      *sori, panjenengan orang endonesa toh, paham toh dg bhs endonesa?*

    • instructions com Says:
      May 9th, 2008 at 11:33 am

      [...] images almost in every page/post in my blog.How to do that? Follow the instructions in this page.http://www.profmustamar.com/how-to-randomly-change-your-header-image/2008/04/22/Download ManualDownload manuals user manuals and instructions. … So be sure to keep us in mind [...]

    Write Comment






    Recent Post

    • Blog : Field of Money
    • Ku Titipkan Kepadamu
    • Jadi Pemateri Joomla! dan Moodle di Seminar Nasional dan Workshop Opensource di Kendari
    • Belum Tentu Dikabulkan
    • Blogger Makassar Anjangsana ke Panti Asuhan Nurul Fatimah (lagi)
    • Pamer Lukisan
    • Teknik Fotografi
    • WHY SO SERIOUS? –Website Bappeda Sulsel Dilaunch Gubernur–
    • Dua Teman Saya Pergi. Hanya Berganti Satu
    • Tentang Rumahku

    Archives

    • November 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • April 2006
    • February 2006
    • November 2005

    Category

    • around me
    • community
    • Jobs
    • movie
    • my blog
    • sport
    • tech review
    • tips
    • tutorial
    • Uncategorized
    • unimportant

    Tags

      • around me
      • community
      • Uncategorized
      • unimportant
      • angingmammiri
      • Jobs
      • campaign
      • google
      • tech review
      • trick
      • php
      • tutorial
      • web review
      • wordpress trick
      • tips
      • sport
      • my blog
      • Jing
      • movie

    Links and Partners

    • Cimut - blognya cimut
    • Makassar Blogger - Angingmammiri.org, Makassar Blogger Community
    • orangbiasa.com - website layanan blog orangbiasa.com

    Add to Technorati Favorites Check Google Page Rank View Mohammad Mustamar Natsir's profile on LinkedIn
    post feed comment feed
    Komunitas Blogger Makassar Angingmammiri.org ss_blog_claim=005982197450ee27f90d9c4a66653994

    Credits

    • Blogkurus theme originally created by : Mohammad Mustamar Natsir
    • all contents under domain profmustamar.com are protected by copyright. please do not copy any contents from this website without permit from profmustamar.com
    profmustamar.com