Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
Want to add links, and display an image when the link is hovered?
See example in video below.
There are a lot of scripts out there to help you do this. The problem with using JavaScript on Ning, you have to add scripts to the Custom Code Box. And the code in the Custom Code Box loads last.
Instructions:
The code I am providing simply displays a thumbnail image below your link, when the link is hovered. I wrote the code for a Ning Text Box. There are 2 parts:
HTML Sample Code:
<h4><a target="_blank" href="your_link1">Link #1 Text<br /><span class="hovlinks"><img src="your_image1" /></span></a></h4>
<h4><a target="_blank" href="your_link2">Link #2 Text<br /><span class="hovlinks"><img src="your_image2" /></span></a></h4>
CSS Code:
Add the following CSS to your Advanced CSS via: My Network/Settings/Appearance/Advanced
span.hovlinks {
position:relative;top:0px;right:0px;z-index:999;
}
a>span.hovlinks img {
display: none;
}
a:hover>span.hovlinks img {
display: block;
}
Enjoy!
Jen
Tags: css display image, css display image on hover, display image, display image on hover link, display on hover, hover, hover link, image, link, no scripts, More…only css



Started by JenSocial in Ning 3.0 1 hour ago. 0 Replies 0 Favorites
Started by Comunidad Stargardt in Ask For Ning Help (Support Questions). Last reply by JenSocial 2 hours ago. 4 Replies 0 Favorites
Started by PaperDigitalArt and Imagesbykim in Ask For Ning Help (Support Questions). Last reply by JenSocial 2 hours ago. 1 Reply 0 Favorites
© 2013 Created by JenSocial.
Powered by
© Copyright JenSocial.
