Click to See Complete Forum and Search --> : Drop down menu generator HELP!!!!!!!!!!
SherryERfan
10-04-2004, 12:02 PM
I tried using the drop down menu generator from the javascript sources website. However, the link that I clicked on do not work so I cannot navigate to a website when clicking on where I want to go. PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
agent_x91
10-04-2004, 12:16 PM
javascript sources website?
can i take a look at the source? i might be able to help
btw is it javascript or java? coz this is the java board, not javascript
ray326
10-04-2004, 12:54 PM
This isn't a Javascript area. You'll get better answers if you post in the right place.
agent_x91
10-04-2004, 01:02 PM
it would also help if you gave some idea of the source. it is impossible to determine the problem without more information. I'll be happy to help, but try the javascript board.
agent_x91
10-05-2004, 04:35 AM
I see the post has been moved into the correct area now.
If you would include or attach the source files for the document(s) which do not work, I will gladly take a look at them for you and try to determine the problem.:)
it's likely the source code from that site is dated. methinks the problem will be it's still 4th generation browser code, and hasn't caught up with the times, which is a general problem with third party script sites. you'd be better learning to code JS, then you wouldn't need to use 3rd party code at all.
agent_x91
10-05-2004, 07:29 AM
no one can really determine anything without at least part of the source code for the file. if you would attach thwe source code for the script you are having problems with, I may be able to make any necessary modifications...
agent_x91
10-09-2004, 05:10 PM
Any chance of eventually getting the source? Or do you expect help without being given any information at all? :confused:
Originally posted by agent_x91
Any chance of eventually getting the source? Or do you expect help without being given any information at all? :confused:
he might have gotten a solution by now. but be too rude to update us. then again, maybe he's off to Spain for a holiday, lucky sod LOL
scoon68
10-09-2004, 11:22 PM
Can I ask a question then? I am working on a project, that will allow people to select music based on artist and then track.I would like to use a form that has two drop down lists. The selection of one list will atomatically populate the other list. When the user selects an item from that list, they will click the play button, and the mp3 will play embeded in a web page. I am not really that good with JS, but I have been trying. I went to javascript.internet.com and picked up this code for the lists, simple enough to understand and edit, but I can't figure out how to have the button to play something from the second list when I understannd that the option has no value??? Please help, I appreciate it:
<HEAD>
<script language="Javascript">
var arrayData = new Array();
arrayData[0] = 'SALES|[SAL] User 01|'
arrayData[1] = 'SALES|[SAL] User 02|'
arrayData[2] = 'SALES|[SAL] User 03|'
arrayData[3] = 'MARKETING|[MAR] User 01|'
arrayData[4] = 'MARKETING|[MAR] User 02|'
arrayData[5] = 'MARKETING|[MAR] User 03|'
arrayData[6] = 'TECHNOLOGY|[TEC] User 01|'
arrayData[7] = 'TECHNOLOGY|[TEC] User 02|'
arrayData[8] = 'TECHNOLOGY|[TEC] User 03|'
function populateData( name ) { select = window.document.form.SubCategory;
string = "";
for( i = 0; i < arrayData.length; i++ ) {
string = arrayData[i].split( "|" );
if( string[0] == name ) {
select.options[count++] = new Option( string[1] );
}
}
</script>
</HEAD>
<BODY>
<table cellpadding=4 cellspacing=0 border=0>
<tr>
<form name=form method=post action="">
<td><span class=DefMenuText>Departments</span><br>
<select name='category' size=3 style="width:120;" onChange='javascript:populateData( this.options[selectedIndex].text )'>
<option>SALES</option>
<option>MARKETING</option>
<option>TECHNOLOGY</option>
</select>
</td>
<td><span class=DefMenuText>Department Users</span><br>
<select name="SubCategory" size=3 style="width:120;">
</select>
</td>
</form>
</tr>
</table>
java_dynamics
10-12-2004, 10:27 AM
I Can Help.
Try This:
<table cellpadding=0 cellspacing=0>
<tr>
<td style="width:150px">
<!--Trigger-->
<button style="width:100%;background:inherit;border:solid black 1px" onmouseover='drop.style.visibility="visible"' onmouseout='drop.style.visibility="hidden"'>Menu</button>
<!--End Of Trigger-->
<br>
<!--Drop Down Menu Starts-->
<div style="visibility:hidden;position:absolute;width:100%;border:solid black 1px;background:white" id="drop" onmouseover='drop.style.visibility="visible"' onmouseout='drop.style.visibility="hidden"'>
<a href="http://www.somewhere.com" style="width:100%">Somewhere</a>
<a href="http://www.somewhere.com" style="width:100%">Somewhere</a>
<a href="http://www.somewhere.com" style="width:100%">Somewhere</a>
<a href="http://www.somewhere.com" style="width:100%">Somewhere</a>
</div>
<!--Menu Ends-->
</td>
</tr>
</table>
The Button "Trigger" Will Cause The Division "drop" To Be Visible.
Since "drop" Is Positioned Absolute, It Will Float Over Everything Else. Note: Each Drop Menu Added Must Have A New Name, And It Must Be In It's Own <TD>.