Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Syntax problem with line of code..

Posted on 2005-05-11
3
Medium Priority
?
838 Views
Last Modified: 2012-06-21
   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
Comment
Question by:dgelinas
3 Comments
 
LVL 2

Expert Comment

by:patbin
ID: 13980078
i think this will work
var exclam = "<img style='cursor:help;' onMouseover='ddrivetip('"+"+"','#F7F7F7',170)'+
 
    "onMouseout='hideddrivetip()' src='<%=path%>images/tables/exclamation.gif'";
0
 
LVL 6

Author Comment

by:dgelinas
ID: 13980123
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
 
LVL 8

Accepted Solution

by:
NETTY4 earned 800 total points
ID: 13980570
Shouldn't it be:

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

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question