Solved

jquery handle on underlying element

Posted on 2013-11-17
7
299 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

615 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