同一个jsp页面中点击不同按钮播放不同的FLA

来源:百度知道 编辑:UC知道 时间:2024/05/28 03:12:29
这个应该如何实现呢?还望各位大大不吝赐教

给你一个jsp页面的代码。
我实现了部分
你可以仿照继续写你要的功能!
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
<title>无标题文档</title>
<script>
function show1(){
if(document.getElementById("top").style.display=="none"){
document.getElementById("top").style.display="";
}else{
document.getElementById("top").style.display="none";
}
}
function show2(){
if(document.getElementById("bottom").style.display=="none"){
document.getElementById("bottom").style.display="";
}else{
document.getElementById("bottom").style.display="none";
}
}
</script>
</head>
<body>
<button onclick="show1()">显示1</button><button o