Current location: Hot Scripts Forums » General Web Coding » JavaScript » javascript, displays in firefox right but not IE


javascript, displays in firefox right but not IE

Reply
  #1 (permalink)  
Old 07-31-04, 02:18 AM
eGGy eGGy is offline
New Member
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
javascript, displays in firefox right but not IE

hey.

ive got a problem with my javascript.
i made a layout in photoshop of my site, saved it, put it into dreamweaver and then found the table cell that i wanted to use to place my java script menu that i built using
Code:
http://www.codethat.com/builder/
now i had problems firstly placing the code in the cell i wanted because the menu would not stay in that cell but instead in the very top left hand corner, i went into the app and changed the positioning of it. tried again and it worked fine, but only in firefox. it still has the same problem in IE...

my code:

<html>
<head>

<title>template final</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
/**script links**/
<link href="../stitrans.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../codethatsdk.js"></script>
<script language="javascript" src="../codethatmenustd.js"></script>
<script language="javascript1.2" src="../menu.js"></script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
/**script links end**/
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (template final.psd) -->
<table id="Table_01" width="980" height="646" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" rowspan="2">
<img src="../images/template-final_01.gif" width="279" height="276" alt=""></td>
<td>
<img src="../images/template-final_02.gif" width="140" height="138" alt=""></td>
<td>
<img src="../images/template-final_03.gif" width="139" height="138" alt=""></td>
<td>
<img src="../images/template-final_04.gif" width="144" height="138" alt=""></td>
<td colspan="3">
<img src="../images/template-final_05.gif" width="138" height="138" alt=""></td>
<td>
<img src="../images/template-final_06.gif" width="140" height="138" alt=""></td>
</tr>
<tr>
<td colspan="7">
<img src="../images/template-final_07.gif" width="701" height="138" alt=""></td>
</tr>
<tr>
<td rowspan="2">
/** cell with script position**/
<img src="../images/template-final_08.gif" width="201" height="369" alt="">

<script>
var menuTest1 = new CMenu(MenuDef, 'menuTest1');
menuTest1.create();
menuTest1.run();
</script>

</td>
/**cell with script position end**/

<td colspan="7">
<img src="../images/template-final_09.gif" width="587" height="47" alt=""></td>
<td colspan="2" rowspan="2">
<img src="../images/template-final_10.gif" width="192" height="369" alt=""></td>
</tr>
<tr>
<td>
<img src="../images/template-final_11.gif" width="44" height="322" alt=""></td>
<td colspan="5">
TEXT GOES HERE!!!!!!!!!!!!!!!!!</td>
<td>
<img src="../images/template-final_13.gif" width="54" height="322" alt=""></td>
</tr>
<tr>
<td>
<img src="../images/spacer.gif" width="201" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="44" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="34" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="140" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="139" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="144" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="32" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="54" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="52" height="1" alt=""></td>
<td>
<img src="../images/spacer.gif" width="140" height="1" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 08-09-04, 06:05 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
First, I can't tell what the problem is becasue you haven't included the actual scripts and I don't feel like searching other sites just to find a script which might not be of the same version you used, kinda messes things up for both of us.

Second, please use the [code ][/code ] tags when posting HTML or scripts more than a few rows. This not only prevents the forum from altering the code but it also looks better.

From what I can tell, the script writes the menu directly to the page at the place in the code it was called from so codewise everything can be ok.
you said you changed the position of the menu, where?
It probably has something to do with absolute or relative positioning of tags...

Sorry for all the critisism, I'm not a moderator or anything but I try to do my part in making these forums a nice place lol

Last edited by TwoD; 08-09-04 at 06:15 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript and content feeds marakkesh JavaScript 0 07-02-04 04:21 AM
Need help populating 2nd Select box with JavaScript jomama13 JavaScript 0 06-22-04 05:27 PM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Macro substitution in JavaScript? victorace JavaScript 1 02-05-04 03:26 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.