JavaScript实现图片轮播和鼠标悬停显示

例:

提前放好了四张图片,并编号。


<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> loaction title>
  <meta charset="utf-8" />
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <style type="text/css">
    .one{
        color:red;
        border:1px solid blue;
        cursor:hand;
    }
    label{
        margin-left:80px;
    }
  style>
 head>
<script type="text/javascript">

script>
 <body onload = "func()" >
    <center>
    <img src="images/1.jpg" width="1000" height="600" alt="" id = "i" />

    <div>
    <h1>
        <label onmouseover = "func1(1)">1label>
        <label onmouseover = "func1(2)">2label>
        <label onmouseover = "func1(3)">3label>
        <label onmouseover = "func1(4)">4label>
    h1>
    div>
    center>
 body>
html>

以上内容作为个人学习记录,仅供参考。

你可能感兴趣的:(JavaScript)