Jump to content

kad_911

Members
  • Posts

    3
  • Joined

  • Last visited

kad_911's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I want add images to my lightbox2 gallery using javascript links. for example, I tried, <script>imageArray =["image1.jpg","image2.jpg","image3.jpg"];function assignUrl(img_num){return "www.website/images/" + imageArray[img_num];}</script> And in my gallery, I used, <a href="javascript:document.location.href=assignUrl(0);" data-lightbox="imagegallery" ><img src="javascript:document.location.href=assignUrl(0);" <!-- thumbnail--> </a> But it doesn't work.. The thumbnail doesn't show, and when u click, the image keeps loading but nothing happens. When I use a test link like this, It displays the image. <a href="javascript:document.location.href=assignUrl(0);"> TEST </a> Please help? what am I doing wrong? Is there any other workaround this?
  2. Hello, Thank you for the reply! When u create a JS file, How can I tell in HTML to look for those links inside the anchor tag?I mean can u tell me the format to write the <a href..> in HTML ?
  3. Hello, Is there a way to tell a <a href="..."> to get the url from another page? I mean, I have a page that has 1000s of links that need to be edited. Its like this, <a href ="www.page/link1.html"> Link 1 </a> <a href ="www.page/link2.html"> Link 2 </a> <a href ="www.page/link3.html"> Link 3 </a> <a href ="www.page/link4.html"> Link 4 </a> . . . and It goes on and on! But I have the links in a seperate file. (txt for now) they are like this, www.page/link1.html www.page/link2.html www.page/link3.html www.page/link4.html . . . So is there any way to tell the anchor tags to use the links from a seperate location without having to copy paste all those inside the tag?? Thanx alot.
×
×
  • Create New...