Add image source link on the Image [closed] - image

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to add an hyperlink on the image :
here is the example : http://aff248.teensdigest.com/articles/766?page=1
I want to use few images on my website with that i want to show the image source.
So how can we add a link of image source on the image itself. I tried with the css but i don't know how to put the link exactly on the image.

Your sample web site is using CSS to overlay the image with an href for "Source" like this:
Source
And in one of the CSS stylesheets, they define the class citation. Check out the second stylesheet in your sample.

Related

How to obtain href anchor texts ​from a div class using XPath [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
With XPath I want to filter out all anchor texts (a href) "click here", which are in a special div class "main-content" included. I am not a developer and hope for support, thank you.
If I understand your query correctly you want to get all 'click here' links present in div with main-content class.
Based on Link Text
//div[contains(#class,'main-content')]//a[.='click here']
Based on attribute:
//div[contains(#class,'main-content')]//a[#href='url goes here']

Index container sample component [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to implement a feed component that has multiple of:-
an icon
a label
The component could be backed by an IndexedContainer.
It would be helpful if the sample showed how to update the feed component when a new item is saved / or inputted the data source.
If you don't need any lazy loading, you could get some inspiration from a still-to-be-published add-on that I've put together: https://github.com/Legioth/Listing/blob/master/listing/src/main/java/org/vaadin/listing/Listing.java
If you want to use the class as it stands, you might also be interested in this usage example: https://github.com/Legioth/Listing/blob/master/listing-demo/src/main/java/org/vaadin/listing/demo/Demo.java#L37
If you need lazy loading, I'd suggest trying to get Table or Grid to work according to your requirements.

Image Display in JSP [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How to display an image to jsp page ?
It does not allow me to display .
I am using simple servlet application and I have mention the correct path so path is not the issue .
Provide the solution as soon as possible.
<img> tag in HTML or JSP, will trigger a GET request which the server has to handle.
EXAMPLE
if I have image like below
<img src="images?imageName=xyz.png"/>
the browser will request the servlet on the server with the name images passing the parameter imageName and its value value.
the servlet images has to handle the request and send image information in the form of stream which gets back to the browser and be displayed on the page.
images is name given to a servlet
follow this thread for better understanding.
Thank you for support .
Problem is solved.
The problem was :
I was trying to fetch the image file dynamically and was writing the height attribute so it was concatinate my src with height so I removed height and wrote before src attribute .
It Works .....

How do I get all the gallery images for a product in magento with a particular name? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to get the image labeled as special from the Gallery images of a product.Using this I want to get that image url.
I tried following code for the same but not working for me
<?php echo Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages()->getItemByColumnValue('label','look')->getFile(); ?>
this was throwing error for me for method getFile()
You can get product image with specific label from this way
$image= Mage::getModel('catalog/product')->load($productid)->getMediaGalleryImages();
$_images = $image->getItemByColumnValue('label', 'YOUR_LABEL');
http://magentotutorialbeginners.blogspot.in/2014/03/get-product-image-from-label-magento.html
Let me know if you have any query

Image id as digit causes W3C error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am using Drupal 7.9 and the images generate a numerical id automatically. It causes W3C validation error value of attribute "id" invalid: "1" cannot start a name because id attribute doesn't allow a digit as its name. The image tag is
<img id="1" class="media-image" alt="contact" src="path to image" typeof="foaf:Image">.
How can I get rid of this? Any help will be greatly appreciated.
Update. As #SvartalF said, how can I prefix string to id in Drupal? I tried jQuery for that. But didn't help. This problem exists only with images uploaded via wyswyg CK editor
HTML id value must begin with a letter, you can check it here.
So, you can prepend id with a some-prefix like a image-, or use HTML5 data-* attributes

Resources