Click to See Complete Forum and Search --> : Loading PROBLEM....PLS help me
[z]`KoLd
09-30-2003, 10:38 PM
Hi Guys or Gals
i got a problem hope u all can help me out...asap..
i need to solve it asap
over the navigation of the code from i get for javascriptScript source....the SUPER edition Menu code....
cos i got two frame...1 frame for the menu the other frame for loading the info when clicking from menu...
but when i try to target frame from one of the link...it load with error...
is an alert error from the windows..
AddMenu("11" , "8" , "CheckOut" , "" , "" , "../Checkout.html" );
how u from here target frame....
pls help me...
thanks...
zkold
Khalid Ali
10-01-2003, 09:19 AM
you will have to look a little deeper in the code and see where its opening the link,and make sure that you add the target at that point.
[z]`KoLd
10-01-2003, 09:04 PM
i try the deeper codes...but i realise...it load me with windows alert errors...
cos...i see the variables...and see the code
is some thing like this
var LINK="";
//display link if any and setup rollover image if any
if(Menu[j][5]!="")
{
LINK="<A href=\""+Menu[j][5]+"\">";
}
Menu[j][5] is variable of URL
Menu[j][2] is variable of text
so i apply the theory of
<a href="abc.html" target="bottomFrame">abc</a>
or i jus sort of write the same things down...but this code below wont work
<a href=\""+Menu[j][5]+"\" target="bottomFrame">Menu[j][2]</a>
the theory should be right,right??
i hope u could help me
thanks
Khalid Ali
10-01-2003, 09:57 PM
post a link to the page where you have the code,I'll need to take a look at the JS code
[z]`KoLd
10-02-2003, 06:48 AM
Html -->>
http://javascript.internet.com/navigation/super-edition-menu.html
Javacripts
http://javascript.internet.com/navigation/Menu.js -->deeper code
http://javascript.internet.com/navigation/Config.js-->Config part
Khalid Ali
10-02-2003, 07:19 AM
it looks like this is whare you want to make chagnes..locate this function in Menu.js
function Build()
then locate these lines
{document.write(" onClick=\"location.href='"+Menu[j][5]+"';\"");}
the code in bold needs to be changed to target your frame it should be something like this
parent.frameName.location.href
If does not work then let me know and I'll create the whole scenario on my machine and make it work for ya..:-)
;)
[z]`KoLd
10-02-2003, 09:54 AM
since now i m using the JS....
the menu itself...for those link i make...by default
the unvisited link is blue
the visited link is purple
how do i change the links color from the JS...
do i do it in the html or JS...
if Js wat should i do...
if html wat should i do with the visited link cos...unvisited link i use font color for...
but visited link i got no idea..
same for Js....if JS how i change the color link
thanks...if u could help...me...i m really glad of it...
cos i kinda need to finish by today
SOrry for my desperate
zkold
Khalid Ali
10-02-2003, 11:16 AM
first of all how rude is that,you never mentioned if the previous suggestions worked for you at all?
Since most of use here are nice guys who volunteer to answer questions,I'll suggest the answer for your recent question.
use CSS to set the required settings for links
something like code below will work,put the code in the head section of your HTML page and change the colors to your liking
<style type="text/css">
a:link { text-decoration : underline ;
color : #ff0000 ; }
a:visited { text-decoration : underline ;
color : #00ff00 ; }
a:hover { text-decoration : underline ;
color : #0000ff ; }
</style>
[z]`KoLd
10-03-2003, 07:59 AM
SOrry khadil ali and guys anyone who can help me
i got a silly question to ask but cos it cant work for the link
e.g
AddMenu("3" , "1" , "Enquiry" , "" , "" , "Enquiry.html");
cos my this html is same folder with index...
so i suppose dont need to put ../Enquiry.html
right?? cos i try ../Enquiry.html also cannot work for the link
the address give me this....
C:\Documents and Settings\Kenneth Love Sharon\Desktop\ECID Assg\Enquiry.html
then the page cannot be display
wat is the solution cos ...i found out very funny....
cos same folder how come like that...
thanks...if u could help me out...
zkold....a thousand apologizes for rudeness