OK! I gave it away in the title.
.
What I have is a java script that is the floating top menu for the site.
Instead of putting all that code on each page I want to have it on one page and just use a little code to import it on all the other pages.
.
I just did this with the header & footer in php but this page is a .js and I don't know how to tell the pages how to link to it.
.
It is after midnight & I have school in the morning & need to get up at 05:00 so I'll check responses by E-Mail.
.
Thanks in advance.
Den
daitken
0
Newbie Poster
Recommended Answers
Jump to PostLook at the bottom of this page (external JavaScript file).
Jump to PostYou can't use the style in js file. js file only accept javascript code. so cut off your style from menu.js
Jump to PostRemove the entire style and no need of
<script type="text/javascript"></script> <script type="text/javascript"></script>
tags in js file
All 9 Replies
stbuchok
daitken
0
Newbie Poster
karthik_ppts
81
Posting Pro
daitken
0
Newbie Poster
karthik_ppts
81
Posting Pro
daitken
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
stbuchok
daitken
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.