.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> JQuery >> Post New QuestionBookmark and Share Subscribe to Forum

JQuery Issue

Posted By: sarav     Posted Date: June 05, 2010    Points:2   Category :JQuery
Hi All,

I have a jquery on my page. If you mouse over a thumbnail Image then the jquery popup will shown its preview image. But now I want to change the script due to some design issue..
Can anyone let me know the jquery with popup preview dynamic.

Thanks,
Sarav

Responses
Author: JH             
Posted Date: June 23, 2010     Points: 5   

Hi,

Do you want to show image popup /hover in dynamic using jquery..?

I hope following sample code will help you

Can you try..?

<script>
$(document).ready(function(){
$("div.logoutimage").mouseover(function ()
{
$(this).addClass("loginimage"); });
$("div.logoutimage").mouseout(function () {
$(this).removeClass("loginimage");
});
});
</script>

//Css class here
.logoutimage
{
background-image:url(images/sample1.gif);
cursor:pointer;
}
.loginimage
{
background-image:url(images/sample2.gif);
cursor:pointer;
}

Thanks




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend