Need a code for header logo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AGIRABI
    Member
    • Oct 2005
    • 45

    Need a code for header logo

    I donno is the write forum if its not sorry...

    Looking for a code to change my header logo in every hit.
    I found a code but it didnt work here i found :


    Code:
     <SCRIPT LANGUAGE="JavaScript">
    <!-- /logo -->
    <!-- Begin Random Logo In Header Script
     
    var theImages = new Array() // do not change this
     
    <!-- Edit the url images to match yours
    theImages[0] = 'http://www.istmod.com/forum/images/banner/banner1.gif
    theImages[1] = 'http://www.istmod.com/forum/images/banner/banner2.gif
    theImages[1] = 'http://www.istmod.com/forum/images/banner/banner3.gif
     
     
     
    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
    preBuffer[i] = new Image()
    preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    function showImage(){
    document.write('<img src="'+theImages[whichImage]+'">');
    }
     
    // End -->
    </script>
    <!-- logo -->
    <a name="top"></a>
    <SCRIPT LANGUAGE="JavaScript">
     
     
    <!-- Begin
    showImage();
    // End --></script>
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></center>
        <td align="$stylevar[right]">
            &nbsp;
        </td>
    </tr>
    </table>
    
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output

    May be it is write code i am doing sometihing wrong, if it is not the write one
    could you guys suggest a me a one...

    Thanks alot...
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Try this.

    The only difference in 3.5.x is that you need to enter the PHP code into a plugin for the parse_templates hook location. The phpinclude_start template no longer exists.

    Comment

    • AGIRABI
      Member
      • Oct 2005
      • 45

      #3
      Perfect, it is worked great
      Thank you so much...

      Comment

      • AGIRABI
        Member
        • Oct 2005
        • 45

        #4
        Thanks alot

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...