Solved

jquery handle on underlying element

Posted on 2013-11-17
7
296 Views
Last Modified: 2013-11-17
I created a gallery slideshow using javascript routines.

I tried to add a button with a script, that would act as a 'pin it' button for the active image on the slideshow.

At the moment, the 'pinit' button appears when I hover over the active, however using my script, I don't know how to get a handle on the image.

Can anyone suggest a solution
Here is a link to the gallery
http://www.lily-g.com.au/index4.php

the pin-it image appears when you hover over the active image.

thanks
0
Comment
Question by:joomla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39655263
What is it you are wanting - the URL?

You could just use

$(".add-image>img").attr("src")



p.s.
Research image optimization.
0
 

Author Comment

by:joomla
ID: 39655273
Hi Gary
thanks for the reponse

I added alert($(".add-image>img").attr("src")); but get an 'undefined' msg

PS... any help on 'image opt' glady taken onboard
0
 
LVL 58

Accepted Solution

by:
Gary earned 220 total points
ID: 39655305
Should be

alert($(".ad-image>img").prop("src"))
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 58

Expert Comment

by:Gary
ID: 39655308
There are a number of different software programs that will do optimization for the web.
I use Photoshop

http://download.cnet.com/JPEG-Photo-Optimizer-for-Web/3000-2192_4-10965673.html
0
 

Author Closing Comment

by:joomla
ID: 39655316
thank you so much for you excellent answer and your advice re image optimisation
regards
0
 

Author Comment

by:joomla
ID: 39655494
Gary,
sorry to pester you, but can you tell me why the script I'm using bombs out in IE (8,9,10)
0
 

Author Comment

by:joomla
ID: 39655513
Sorry Gary,
found the issue was with my attempt to open a blank window

we realized that IE does not support a name as second argument.
regards
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 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