Ingutchini
06-21-2003, 01:55 AM
Hi everyone
I am just a beginner at Javascript and am struggling with a navigation menu I downloaded from JSource. Its the topbanner menu where there are 4 categories in text and as you mouseover each category it highlights the pages on the buttons underneath.
Well I have got everything done except to link the buttons to the pages - and I cannot work out how to do it! LOL
I believe its something to do with the following portion but I am unsure????? Please please help!!!!!!
//This sends
function go2url(hlink) {
// set temporary variable temp1 to the value of the dummy hidden field
var temp1 = document.menu.dummy.value;
// set the temporary variable temp2 to link array
var temp2 = (linx[temp1][hlink]);
// Construct the url for the link to point to
window.location = "http://www.yourdomain.com/"+temp2+".htm";
}
Am I right or is it another area of the script that provides the links?
Regards from a total novice :-)
I am just a beginner at Javascript and am struggling with a navigation menu I downloaded from JSource. Its the topbanner menu where there are 4 categories in text and as you mouseover each category it highlights the pages on the buttons underneath.
Well I have got everything done except to link the buttons to the pages - and I cannot work out how to do it! LOL
I believe its something to do with the following portion but I am unsure????? Please please help!!!!!!
//This sends
function go2url(hlink) {
// set temporary variable temp1 to the value of the dummy hidden field
var temp1 = document.menu.dummy.value;
// set the temporary variable temp2 to link array
var temp2 = (linx[temp1][hlink]);
// Construct the url for the link to point to
window.location = "http://www.yourdomain.com/"+temp2+".htm";
}
Am I right or is it another area of the script that provides the links?
Regards from a total novice :-)