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 4537036
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:37:05+00:00 2026-05-21T14:37:05+00:00

hi I have a Js image changer with corresponding links how to I open

  • 0

hi I have a Js image changer with corresponding links how to I open links in new window ?

     <script type="text/javascript">

        //#1 SPECIFY number of slideshows
        var number_of_slideshows=3

        // (2000=2 seconds)
        var interval=3500

        //#3 SHOULD each slide be linked to a unique URL
        var linked=1

        var slideshows=new Array(number_of_slideshows)
        for (i=0; i <number_of_slideshows; i++)
        slideshows[i]=new Array()

        //#4 SPECIFY image paths of 1st slideshow
        slideshows[0][0]='images/brownie.png'
        slideshows[0][1]='images/land.jpg'
        slideshows[0][2]='images/palmer.jpg'
        slideshows[0][3]='images/add.jpg'


        var slidelinks=new Array(number_of_slideshows)
        for (i=0; i <number_of_slideshows; i++)
        slidelinks[i]=new Array()

        //#5 SPECIFY urls of 1st slideshow
        slidelinks[0][0]='http://www.browning.com'
        slidelinks[0][1]='http://www.lakelandfishery.com'
        slidelinks[0][2]='http://www.palmeroni.com'
        slidelinks[0][3]='http://www.palmeroni.com'



        function clickredir() 

{
window.open(“http://www.browning.com&#8221;,””,””)
window.open(“http://www.lakelandfishery.com&#8221;,””,””)
window.open(“http://www.palmeroni.com&#8221;,””,””)
window.open(“http://www.palmeroni.com&#8221;,””,””)
}

</script>

          <script>

        var maininc=0
        var subinc=0

        if (linked)
        document.write('<a href="javascript:clickredir()"><img src="'+slideshows[0][0]+'" name="multislide" border=0></a>')
        else
        document.write('<img src="'+slideshows[0][0]+'" name="multislide">')

        function slideit(){
        subinc= (subinc<slideshows[maininc].length-1)? subinc+1: 0
        document.images.multislide.src=slideshows[maininc][subinc]
        }

        function setslide(which){
        clearInterval(runit)
        maininc=which
        subinc=0
        runit=setInterval("slideit()",interval)
        }

        runit=setInterval("slideit()",interval)

        </script>
  • 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-21T14:37:05+00:00Added an answer on May 21, 2026 at 2:37 pm

    To open new window in JS use window.open

    Example: window.open(url, "", "toolbar=1, resize=1, scrollbars=1, status=1")


    Edit

    if (linked)
      document.write('<a href="javascript:window.open(slidelinks[0][0],"","")"><img src="'+slideshows[0][0]+'" name="multislide" border=0></a>')
    else
      document.write('<img src="'+slideshows[0][0]+'" name="multislide">')
    

    Edit 2

    if (linked)
      document.write('<a href="javascript:clickredir(0,0)"><img src="'+slideshows[0][0]+'" name="multislide" border=0></a>')
    else
      document.write('<img src="'+slideshows[0][0]+'" name="multislide">')
    

    Pass some parameter in clickDir() method to know which url to open. Decide it yourself what you want to pass. And then in clickdir method do like this:

    function clickredir(i,j) 
    { window.open(slidelinks[i][j],"","") }
    

    It’s just a sample code you have to modify it to meet your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this loaded before the radio buttons with corresponding color variable: <script type=text/javascript>
Change all links that have an image in it to: javascript(alert(thehref)); eg. <a href=/galleries/anna-leah-111827/image01.html><img
I have the following script that changes my image on a timer: var da
I have this script at the moment, which changes an image when a thumbnail
I have problem with dynamically created image (JavaScript). I want to change the innerHTML
I have a simple jQuery image changer, that when you hover over it will
so I have a simple problem. I have a hover background image change effect,
Jquery, AJAX and URL changes... I have a gallery, and when the image change
I have a Blackberry project in which I want to change normal image to
I have this method that changes an larger image source on click. I need

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.