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 3489764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:26:03+00:00 2026-05-18T11:26:03+00:00

I have done the following code for a list of pics, when the user

  • 0

I have done the following code for a list of pics, when the user mouseover the picture an alt is showing up:

I would like to know if there is anyway I can move the mouseover’ed element only and not all of them like i do now.

#{list items:gallery.listPictures(), as:'picture'}
    <a class="pic" href="@{Galleries.showPicture(picture.id)}"><img src="@{Application.getPicture(picture.id)}" alt="${picture.name}" />
        <span class="alt">${picture.name}</span>
    </a>
#{/list}
<script type="text/javascript">
$(function(){
$(".pic").mouseover(function(event){
    $(".alt").css({'top': event.pageY, 'left': event.pageX});  
});

});

  • 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-18T11:26:04+00:00Added an answer on May 18, 2026 at 11:26 am
    <script type="text/javascript">
    $(function(){
    $(".pic").mouseover(function(event){
        $(this).find(' > span').css({'top': event.pageY, 'left': event.pageX});  
    });
    </script>
    

    Notice the $(this). Inside a jQuery function this will access the current element that fired the event.

    See jQuery selectors and jQuery child-selector and jQuery .find()

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

Sidebar

Related Questions

I have just started using jQuery and although following code gets the job done,
I have the following code inside a method: var list = new[] { new
I have the following code: //View guest list -(IBAction) guestList:(id) sender{ NSString *connected =
I have the following code which I use to map a nested list in
I have the following code. The code populates a list box basing on the
I have the following code: List<Pattern> patterns = Lists.newArrayList(Pattern.compile(blah), Pattern.compile(blah2)); Map<Pattern, String> map =
I have the following code that should retrive the list of devices and get
I am using **<style>..{data inside}..</style>** which is there in following code.i have taken all
I have done the following form <% form_for @anexo, :url => {:action => create},
How can I self-sign an iPhone application using Xcode? I have done the following:

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.