Click to See Complete Forum and Search --> : Menue Problem!


man
07-13-2003, 01:54 PM
Hy there...

I use this Menue Script...
----------------------------------------------------------------------
<script language="JavaScript1.2">
<!--
offMessage = "Bisher wurden keine Inhalte hinterlegt"

function boxOn(which,message){
if (document.all||document.getElementById){
which.className='BorderOn'
if (document.getElementById) {document.getElementById("Message").innerHTML = message}
else {Message.innerHTML = message}
}
}

function boxOff(which){
if (document.all||document.getElementById){
which.className='BorderOff'
if (document.getElementById) {document.getElementById("Message").innerHTML = offMessage}
else {Message.innerHTML = offMessage}
}
}
function popup(source,name,width,height)
{
window.open(source,name,'width='+width+',height='+height+'');
}
//-->
</script>

}
function popup(source,name,width,height)
{
window.open(source,name,width='+width+',height='+height);
}
----------------------------------------------------------------------
To open Links with it i use this in the body ...
...
<td bgcolor="#ffffff" width="80" bordercolor="#FFFFFF"><font color="#FFFFFF" face="Arial" size="1"><a href="#" onClick="popup('../Board/index.php','window',600,600)">
H-Board</a></font></td>
...
----------------------------------------------------------------------

Problem:
Now i want to open this links with for example Scrollbars!
What must be changed?

AdamGundry
07-13-2003, 01:58 PM
I believe you need to change this line

window. open(source,name,width='+width+',height='+height);

to something like this

window.open(source,name,'width='+width+',height='+height+',scrollbars=1');

Adam

P.S. Remember the W3C recommends not using popups.

man
07-13-2003, 02:07 PM
Yes thatīs it!




Thx