Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7498385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:27:33+00:00 2026-05-29T19:27:33+00:00

I recently setup custom rotational banners on my blogger using this code I come

  • 0

I recently setup custom rotational banners on my blogger using this code I come across but I can’t seem to figure out how to make the images clickable to link to the homepage.
Any help would be much appreciated.

Heres the code:

<script type='text/javascript'>
var HeaderImage= new Array()

HeaderImage[0]=&quot;http://Example1.png&quot;
HeaderImage[1]=&quot;http://Example2.png&quot;
HeaderImage[2]=&quot;http://Example3.png&quot;
HeaderImage[3]=&quot;http://Example4.png&quot;
HeaderImage[4]=&quot;http://Example5.gif&quot;
HeaderImage[5]=&quot;http://Example6.png&quot;
HeaderImage[6]=&quot;http://Example7.png&quot;
var random=Math.round(6*Math.random());

document.write(&quot;<style>&quot;);
document.write(&quot;#header {&quot;);
document.write(&#39; background:url(&quot;&#39; + HeaderImage[random] + &#39;&quot;) no-repeat left TOP;&#39;);
document.write(&quot; }&quot;);
document.write(&quot;</style>&quot;);

</script>

Its working now guys.
I just wasn’t sure exactly where to put the tags everyone was teling me.
Thanks very much for all your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:27:34+00:00Added an answer on May 29, 2026 at 7:27 pm

    This code has issues with &quot instead of ". But aside from that, what this code is doing is setting the background image for an object with id="header". To make that object clickable, you can surround the header object with an <a> tag. For example, if the header object was a div, then you would use something like this:

    <a href="xxx"><div id="header"></a></a>
    

    If there’s some reason why you don’t want to use a link to make the area clickable (which is the simplest way to do it), then you could also use javascript like this:

    document.getElementById("header").onclick = function() {
        window.location = "http://my.example.com";
    }
    

    This would either be placed after the page HTML (so the object in question is already loaded when this code runs).

    If you show us the actual HTML that includes the header object, we could be more specific about how to make it clickable.

    From reviewing your HTML, if you want to make it clickable with just your HTML, you can change this part of your HTML:

    <b:section class='header' id='header' maxwidgets='2' showaddelement='yes'>
    <b:widget id='Header1' locked='true' title='Mum4d.com (Header)' type='Header'/>
    </b:section>
    

    to this (which just surrounds it with an <a> tag:

    <a href="http://my.example.com">
        <b:section class='header' id='header' maxwidgets='2' showaddelement='yes'>
            <b:widget id='Header1' locked='true' title='Mum4d.com (Header)' type='Header'/>
        </b:section>
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently switched to a new setup that is reporting PHP Notices; my code
I have recently setup a spring + hibernate project. I am using oracle DB.
I recently setup a WCF service using Visual Studio 2010. The service is hosted
I've just recently setup a custom replication for my subscriber database, as described in
I recently switched over to using Janus from a custom set of vim plugins
really struggling with this one. I've recently setup a bash shell script to extract,
We regularly setup simple winforms using Linq To Sql. I recently discovered that the
Recently i start develop a setup program using asp.net , I want to save
I recently setup a deployment solution for my Django project using Fabric . The
Starting recently, some of my new web pages (XHTML 1.1) are setup to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.