/    Sign up×
Community /Pin to ProfileBookmark

External Javascript Files

Hey, these are very usefull but very hard to use. I want a javascript file that can write this to the page:

<table border=”0″ width=”100%” id=”table1″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td align=”center”><a target=”_blank” href=”http://www.yahoo.com”>Yahoo</a></td>
<td align=”center”><a target=”_
blank” href=”http://www.google.com“>
Google</a></td>
<td align=”center”><a target=”_blank” href=”http://www.altavista.com“>
Altavista</a></td>
</tr>
</table>

Any help would, and I would be very thankfull

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJul 06.2004 — Do not generate pages with JavaScript; it's inaccessible.
Copy linkTweet thisAlerts:
@Anthony2oo4authorJul 06.2004 — I dont want to generate the whole page with it. Just to call that file at the bottom of each page so that that table is show.

Is It possible?
Copy linkTweet thisAlerts:
@fredmvJul 06.2004 — It doesn't matter if it's the whole page or not. The fact of the matter is whatever you generate with JavaScript is not seen by search engines nor can non-JavaScript users access it. Ideally, you'd use dynamic server-side file inclusion methods.

P.S. That's also incorrect usage of a table; use an unordered list and style accordingly with CSS.
Copy linkTweet thisAlerts:
@Anthony2oo4authorJul 06.2004 — I am not intrested if it is search by google or anything. Ok then here is my situation, and you tell me how to do it or the best way, ?

I have PHPNuke and I need to add 3 images to the bottom of each page. In this system it offers footers so I was trying to get the system to open this file and extract the three images from it and put them in a table so they are arranged evenly.

I tried to place the table code straight into the footer box but it wasnt happy with it. So I need it into a javascript file. Even if non javascript people can't see it, I still need it there.

The system will open the file cause I have another file working with it now, but doing a different task.

please help?
×

Success!

Help @Anthony2oo4 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...