• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 841
  • Last Modified:

Syntax problem with line of code..

   var exclam = "<img style='cursor:help;' onMouseover='ddrivetip('"+"''"+",'#F7F7F7', 170)"+
    "onMouseout='hideddrivetip()' src='<%=path%>images/tables/exclamation.gif'";


ddrivetip function has 3 string values in it currently, they are not dynamic.  I'm having trouble getting the syntax correct though..

Thanks
0
dgelinas
Asked:
dgelinas
1 Solution
 
patbinCommented:
i think this will work
var exclam = "<img style='cursor:help;' onMouseover='ddrivetip('"+"+"','#F7F7F7',170)'+
 
    "onMouseout='hideddrivetip()' src='<%=path%>images/tables/exclamation.gif'";
0
 
dgelinasAuthor Commented:
Still not working maybe the below wil be easier to read the value test is a string not a variable.

    var exclam = "<img style='cursor:help;' onMouseover='ddrivetip('test','#F7F7F7',170)'+
      "onMouseout='hideddrivetip()' src='<%=path%>images/tables/exclamation.gif'";
0
 
NETTY4Commented:
Shouldn't it be:

 var exclam = "<img style='cursor:help;' onMouseover='ddrivetip(\"test\",\"#F7F7F7",170)'  "+
      "onMouseout='hideddrivetip()' src='<%=path%>images/tables/exclamation.gif'>";

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now