Jump to content


How do I put a list of links inside a .js file?


2 replies to this topic

#1 starvista9

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 20 May 2006 - 08:39 PM

I have 33 links I need to put in a .js file so my .php pages can call the .js up.

Anybody know?

document.write("<h6><div align='left'><a href='http://www.somewebsite.comt/'target='_blank'>Some Web Site</a></h6>");

But the header tag is surely wrong to make a nice clean list of links, the links to do fit well on the page if we go that road.

#2 Chaos King

    Senior Programmer

  • P2L Staff
  • PipPipPip
  • 676 posts
  • Gender:Male
  • Location:Florida

Posted 20 May 2006 - 11:39 PM

What are you asking? I dont understand....

You could write the js file manually through php or you could use mod rewrite to cloak that js file as an actual php file. It is totally up to you.

#3 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 20 May 2006 - 11:40 PM

the <script></script> doesnt need to be in the head





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users