我们如何借助java脚本在鼠标悬停上缩放图像 [英] how we zoom image on mouseover with the help of java script

查看:79
本文介绍了我们如何借助java脚本在鼠标悬停上缩放图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生,

i需要解决问题,以便在我们的鼠标光标使用java脚本

解决方案

<进行图像处理时缩放图像blockquote>您可以使用jQuery通过mousehover执行缩放图像。完整的代码如下,



 <   html  >  
< title > 图片缩放鼠标悬停< / title >
< style type = text / css >
div { display inline}
< / style>

< script src =http: // ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js>< / script>
< script type =text / javascript>


(document).ready(function(){


(#I1) mouseover(function(){


hello Sir,
i need to fix the problem to zoom image when our mouse curser goes on image with the using of java script

解决方案

You can do the zoom image by mousehover using jQuery. The complete code is as following,

<html>
<title>Image Zoom Mousehover</title>
<style type="text/css">
  div{display:inline}
</style>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">


(document).ready(function(){


("#I1").mouseover(function(){


这篇关于我们如何借助java脚本在鼠标悬停上缩放图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆