Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Javascript Problem Please help ASAP!!!
Old 12-07-2004, 11:59 PM Javascript Problem Please help ASAP!!!
TaylorAtCTS's Avatar
Webmaster Talker

Posts: 501
Location: Memphis, TN, USA
Trades: 0
Hi, I'm having some problems that are really killing me. I've been trying to fix this for over 7 hours now and I have tried EVERYTHING that I can think of. I need more brain power :P. Perhaps I can borrow some of yours.

Heres the problem. I'm trying to call some js into my html document so that i can easily change links around sitewide with one edit. The thing is i really need to send a couple of files for you to understand the problem. I'll cut and paste everything here I suppose..

Here is my main index file:
Quote:
<SCRIPT src="js/cts.jsp" langauge="javascript"></script>
<SCRIPT src="js/navigation.jsp" langauge="javascript"></script>
</HEAD>
<BODY BGCOLOR=#FFFFFF background="images/bgb.gif" text="#000000" link="#666666" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad="MM_preloadImages('images/websites.gif','images/Graphics.gif','images/Templates.gif',
'images/Testimonials.gif','images/Contact-Us.gif','images/Hosting.gif','images/Home.gif','images/About-Us.gif','images/Services.gif','images/Contact-Us-top.gif')">
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <img src="images/banner.jpg" width="778" height="173" alt="website designer tennessee - Memphis web page design, hosting, marketing and promotion"></td>
</tr>
</table>
<script language="javascript">navigation()</script>
<table width="778" border="0" cellspacing="0" cellpadding="0" height="13">
<tr>
<td><img src="images/3_10.gif" width=778 height=13 alt="about - memphis webpage designer"></td>
</tr>
</table>
where the js function 'navigation' is from this jsp file:

Quote:
function navigation()
{
<table width="778" border="0" cellspacing="0" cellpadding="0"><tr><td width="89"><a href="../index.html"><img src="../images/3_02.gif" alt="tennessee designer" width=89 height=28 border="0"></a></td><td width="85"><img src="../images/3_03.gif" width=85 height=28 alt="designer memphis"></td><td width="195"><img src="../images/3_04.jpg" width=195 height=28 alt="website"></td><td width="59"><a href="../index.html" onMouseOver="MM_swapImage('Image6','','../images/Home.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/3_05.gif" alt="" name="Image6" width=59 height=28 border="0" id="Image6"></a></td><td width="81"><a href="../aboutus/aboutus.html" onMouseOver="MM_swapImage('Image7','','../images/About-Us.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/3_06.gif" alt="" name="Image7" width=81 height=28 border="0" id="Image7"></a></td><td width="80"><a href="../Services/Services.html" onMouseOver="MM_swapImage('Image8','','../images/Services.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/3_07.gif" alt="" name="Image8" width=80 height=28 border="0" id="Image8"></a></td><td width="80"><a href="../contactus/contactus.html" onMouseOver="MM_swapImage('Image9','','../images/Contact-Us-top.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/3_08.gif" alt="" name="Image9" width=80 height=28 border="0" id="Image9"></a></td><td width="109"><a href="../Testimonials/Testimonials.html" onMouseOver="MM_swapImage('Image10','','../images/Testimonials.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/3_09.gif" alt="" name="Image10" width=109 height=28 border="0" id="Image10"></a></td></tr></table>'
}

thats all one massive line..

and then the other js on the page works fine.


The problem is that i dont see my navigation in any broswer, its just not there! help pleeease!

if you want all of the code please contact me because i havent uploaded this
__________________

Please login or register to view this content. Registration is FREE


Custom Tailored Solutions designs the best looking, most functional customized marketing solutions from web design to brochures with a 100% satisfaction guarantee, all for a price that fits your budget.

Last edited by TaylorAtCTS; 12-08-2004 at 12:07 AM.. Reason: overstretched
TaylorAtCTS is offline
Reply With Quote
View Public Profile Visit TaylorAtCTS's homepage!
 
 
Register now for full access!
Old 12-08-2004, 08:24 AM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Hello taylor,

In your navigation js script I do not see a document.write command.

You just have the html code.

put the html code in a document.write(' CODE '); command.

Also place the include for the .js file were you want your navigation file to appear. That should do the trick.
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 12-08-2004, 08:45 PM
TaylorAtCTS's Avatar
Webmaster Talker

Posts: 501
Location: Memphis, TN, USA
Trades: 0
I fixed it! lol thanks for your help AC, it was not just that but also im completly retarded.. I was calling javascript functions that didnt exsist in the html. It works perfect now I apprciate it!
__________________

Please login or register to view this content. Registration is FREE


Custom Tailored Solutions designs the best looking, most functional customized marketing solutions from web design to brochures with a 100% satisfaction guarantee, all for a price that fits your budget.
TaylorAtCTS is offline
Reply With Quote
View Public Profile Visit TaylorAtCTS's homepage!
 
Old 12-08-2004, 10:53 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Glad you got it working!
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Reply     « Reply to Javascript Problem Please help ASAP!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20281 seconds with 12 queries