Author Topic: Any Javascript programmers?  (Read 559 times)

Offline rrowan

  • Administrator
  • Sr. Member
  • *****
  • Posts: 5899
  • 08096
Any Javascript programmers?
« on: November 22, 2011, »
Hi Folks,

While I can do some programming Javascipt is not one of them. Sure I could take the time to learn it and modify a program I dl off the net. Basically I have a website that does a slideshow of pictures. Some of the pictures we would like to add a hyperlink to open a new page and display more info about that item. The pictures (location and each picture) is loaded into a array which is loaded by a php script.

Any advice will be greatly appreciated

Rick R.
Light Animation Hobby - Having fun and Learning at the same time. (21st member of DLA)
You are not allowed to view links. Register or Login
Warning SOME assembly required

Offline Ron

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 1387
Any Javascript programmers?
« Reply #1 on: November 22, 2011, »
I are you already running JavaScript for the slideshow?  Is the URL in the php array at this point?

Offline mikedbom

  • Sr. Member
  • ****
  • Posts: 145
    • NorthBridge Web Design
Re: Any Javascript programmers?
« Reply #2 on: November 22, 2011, »
no need to do this in js.  you can change the HTML for each picture to something like this:

<a href="#"><img src="../images/banner/b1.jpg" />[/url]

of course modify your path to the image and change the "#" to hyperlink destination.

that way each picture that has this code will contain a hyperlink to whatever destination you want.