Click here to Skip to main content
15,904,415 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCsharp WebService Client authentification Pin
olibara11-Mar-10 3:24
olibara11-Mar-10 3:24 
AnswerRe: Csharp WebService Client authentification Pin
mrMercury11-Mar-10 5:02
mrMercury11-Mar-10 5:02 
GeneralRe: Csharp WebService Client authentification Pin
olibara11-Mar-10 6:12
olibara11-Mar-10 6:12 
AnswerRe: Csharp WebService Client authentification Pin
PHP_Guy16-Mar-10 9:34
PHP_Guy16-Mar-10 9:34 
Questionusing Mindterm Pin
sangeethanarayan11-Mar-10 2:13
sangeethanarayan11-Mar-10 2:13 
AnswerRe: using Mindterm Pin
T M Gray12-Mar-10 11:57
T M Gray12-Mar-10 11:57 
QuestionCappuccino framework with ruby on rails Pin
PeriyasamyRamachandran10-Mar-10 22:46
PeriyasamyRamachandran10-Mar-10 22:46 
Questiononmouseover and onmouseout event Pin
bigeyed9-Mar-10 5:33
bigeyed9-Mar-10 5:33 
I am using image menu and the menu changes the image of it when i roll over the mouse on or out.
I am using the following codes.

-------------------------------------------------------------------------------------------------------------------------
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



< src="../Images/topmenu02.gif" onclick="fnChangeImage(this.name);" name="topmenu02" width="98" height="38"
id="Images/topmenu02"
onmouseover="MM_swapImage('topmenu02','','../Images/topmenu02_on.gif',1)"
onmouseout="MM_swapImgRestore()" style="cursor: pointer" >

--------------------------------------------------------------------------------------------------

but I want to add the function that when I click on the image, I like to keep the onmouseover image.

so I added this code.
function fnChangeImage(name)
{
eval("document.all."+name+ ".src = '../Images/"+name+"_on.gif';");
}

but it doesn't work. it keep going back to onmouseout image.

please help.
AnswerRe: onmouseover and onmouseout event Pin
T M Gray9-Mar-10 9:15
T M Gray9-Mar-10 9:15 
GeneralRe: onmouseover and onmouseout event Pin
bigeyed9-Mar-10 9:38
bigeyed9-Mar-10 9:38 
GeneralRe: onmouseover and onmouseout event [modified] Pin
daveyerwin9-Mar-10 14:32
daveyerwin9-Mar-10 14:32 
Questionexample on registering on web sing UDDI Pin
NetQuestions8-Mar-10 22:09
NetQuestions8-Mar-10 22:09 
AnswerRe: example on registering on web sing UDDI Pin
T M Gray9-Mar-10 9:05
T M Gray9-Mar-10 9:05 
GeneralRe: example on registering on web sing UDDI Pin
NetQuestions12-Mar-10 20:13
NetQuestions12-Mar-10 20:13 
Questiontype check in http_get Pin
NetQuestions8-Mar-10 21:11
NetQuestions8-Mar-10 21:11 
AnswerRe: type check in http_get Pin
daveyerwin9-Mar-10 14:43
daveyerwin9-Mar-10 14:43 
GeneralRe: type check in http_get Pin
NetQuestions12-Mar-10 20:04
NetQuestions12-Mar-10 20:04 
QuestionWebsite Chache Pin
JM22518-Mar-10 20:57
JM22518-Mar-10 20:57 
AnswerRe: Website Chache Pin
R. Giskard Reventlov8-Mar-10 21:33
R. Giskard Reventlov8-Mar-10 21:33 
GeneralRe: Website Chache Pin
JM22518-Mar-10 21:40
JM22518-Mar-10 21:40 
QuestionSending mail using ASP. Pin
Venkatesh.P8-Mar-10 20:56
Venkatesh.P8-Mar-10 20:56 
AnswerRe: Sending mail using ASP. Pin
RCoate8-Mar-10 21:20
RCoate8-Mar-10 21:20 
GeneralRe: Sending mail using ASP. [modified] Pin
Venkatesh.P8-Mar-10 21:40
Venkatesh.P8-Mar-10 21:40 
GeneralRe: Sending mail using ASP. Pin
T M Gray9-Mar-10 9:19
T M Gray9-Mar-10 9:19 
GeneralRe: Sending mail using ASP. Pin
DX Roster10-Mar-10 0:34
DX Roster10-Mar-10 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.