BudSpencer
Gebruiker
- Lid geworden
- 2 aug 2005
- Berichten
- 9
Hallo, weet iemand hoe je een standaard button (zie script hieronder) een andere mouse-over kleur geeft? Want dat is standaard geel. Ik bedoel dus de rand van de button die bij mouse-over standaard een gele kleur krijgt. Ik wil graag dat bij mouse-over de button de kleur: #682468 krijgt.
Als iemand het script wilt aanpassen zou dat helemaal geweldig zijn, anders graag mij vertellen wat ik moet toevoegen/aanpassen om dit te doen.
<HTML>
<HEAD>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
}
// -->
</script>
</HEAD>
<BODY>
<input style="font-size:14px;color:#682468;font-family:verdana;font-weight:bold;" type="button" name="B1" value=" TEST " onClick="popup('http://www.google.nl','Test','640','480','center','front');">
</BODY>
<HTML>
Bij voorbaat dank,
groeten Jurgen
Als iemand het script wilt aanpassen zou dat helemaal geweldig zijn, anders graag mij vertellen wat ik moet toevoegen/aanpassen om dit te doen.
<HTML>
<HEAD>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
}
// -->
</script>
</HEAD>
<BODY>
<input style="font-size:14px;color:#682468;font-family:verdana;font-weight:bold;" type="button" name="B1" value=" TEST " onClick="popup('http://www.google.nl','Test','640','480','center','front');">
</BODY>
<HTML>
Bij voorbaat dank,
groeten Jurgen

Laatst bewerkt: