Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 315593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:18:21+00:00 2026-05-12T08:18:21+00:00

I am using a dynamic jquery carousel to show thumbnail images in the home

  • 0

I am using a dynamic jquery carousel to show thumbnail images in the home page….The carousel is working fine…and i want to add a tooltip to each image….for this i am using jquery tooltip….on hover tooltip should display the original image,uploaded by and so on…

The javascript that adds the tooltip to each image is as follows…

 function mycarousel_getItemHTML(url)
{
var url= url.split(",");
 return '<a href="'+url[4]+'"  onmouseover="Tip(\'<img src=\''+url[5]+'\'></img><br/><b>'+url[1]+'</b><br />Category:'+url[6]+'<br/>Views:'+url[2]+'<br/>Uploaded by:'+url[3]+'\')" onmouseout="UnTip()"><img src="' + url[0] + '" width="75" height="75" alt="" /></a>';
};


url[5]=original img src
url[1]=title
url[6]=category name
url[2]=no of views
url[3]=uploaded by
url[0]=thumbnail img source

the above javascript gives me the following error

missing ) after argument list

how can i escape single and double quote properly…Please help me…–

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:18:21+00:00Added an answer on May 12, 2026 at 8:18 am

    I think the onmouseover portion is wrong, and you want:

    onmouseover="Tip(\'<img src=\\\''+url[5]+'\\\' /><br/><b>'+url[1]+'</b><br />Category:'+url[6]+'<br/>Views:'+url[2]+'<br/>Uploaded by:'+url[3]+'\')"
    

    Let me know if that doesn’t work – my head’s hurting from trying to be a JavaScript interpreter. I think that’s on the right lines though.

    p.s. I fixed your <img> tag – I think in general <img> tags should be self-closing <img... />, not <img...></img>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery to add some dynamic content to a website. I am
I'm using a dynamic jQuery tab widget to add/remove tabs generated programmatically. How do
I am using the jQuery tools tooltip on a page. When the user rollovers
I am using jQuery datatables in a dynamic PHP site. I have a page
I am using jquery ui's tabs And i want to make it dynamic by
I'm using the qTip jQuery plugin to generate a dynamic tooltip. I'm getting an
I'm currently using the jquery dynamic form plugin to add form fields. http://sroucheray.org/blog/jquery-dynamic-form/ My
With jQuery mobile I'm using a dynamic 'page' template with custom content inserted depending
I'm using the jQuery template engine to add dynamic DOM elements (specifically DIVs). To
I created dynamic list using android phonegap application.Now I want to add scrollbar for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.