[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: onmouseover routines (fwd)
Aymeric,
For one thing, you need to add 'height=some_value' to your <img> call.
Here is the fixed version. But be careful. you will still neet to
update the call to open a new window.
Here is updated version of uoyr code:
<html>
<head>
<script language=JavaScript >
<!--
function openNewUrl( frameWindow, whichForm ) {
var maxLength = document.forms[whichForm].ThisType.length
for (var i = 0; i < maxLength; i++) {
if (document.forms[whichForm].ThisType.options[i].selected == true )
urlAddress =
document.forms[whichForm].ThisType.options[i].value //set url
}
if ( frameWindow == "_top" )
top.open( urlAddress, frameWindow ) // overwrite old window
else
parent.open( urlAddress, frameWindow ) // in frame
}
// -->
</script>
</head>
<body bgcolor="#000000" text="#FFFFFF" link="#008040" vlink="#008040"
alink="#008040">
<center>
<img align=center src="./pix/new.gif" alt="NEW!" width=100
height=100><hr><p>
<base target="main">
<h2>Friends</h2>
<form>
<table>
<tr><td align="center">
<select name="ThisType">
<option selected value="http://www.ecn.bgu.edu/users/urhendel">Robert
Hendelman
<option value="http://www.NETural.com/~thekind/">Adam Dace
</select>
</td></tr>
<tr><td align="center">
<input type="button" value="Jump to" onClick="openNewUrl('main',0)">
</td></tr>
</table>
</form>
<hr>
</center>
</html>
-------------
Your welcome.
Masoud.
-------------
--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.