日期:2014-05-16 浏览次数:20388 次
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title></title>
<script src="js/jquery-1.10.2.js" type="application/javascript"></script>
<script src="js/common.js" type="application/javascript"></script>
</head>
<body>
<canvas width="1920" height="500" id="myCanvas" class="title_01">
不好意思你的浏览器不支持html5 请使用谷歌浏览器或者火狐浏览器
</canvas>
<select id="select_hai" name="select">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3" >3</option>
</select>
</body>
</html>
// JavaScript Document
xiaoguo_1();
$(document).ready(function(){
// jQuery methods go here...
$('.title_01').click(function () {
$('.tcc').css("visibility","visible");
})
$('.comfire1').click(function () {
var getinput=$('#gettitle').val();
xiaoguo_1("ggge");
$('.tcc').css("visibility","hidden");
})
})
$(document).ready(function(){
// jQuery methods go here...
$('.title_02').click(function () {
$('.tcc').css("visibility","visible");
})
$('.comfire2').click(function () {
var getinput=$('#gettitle').val();
xiaoguo_2("fwe");
$('.tcc').css("visibility","hidden");
})
})
/*选择海报*/
$(document).ready(function(){
$('#select_hai').change(function () {
var select_haibaos=$('#select_hai').val();
switch (select_haibaos)
{
case '1':
xiaoguo_1();
break;
case '2':
xiaoguo_2();
break;
}
});
})
function xiaoguo_1(wenzi)
{
if(!arguments[0]) wenzi = "123";
$(document).ready(function(){
$('#myCanvas').removeClass();
$('#comfire').removeClass();
$('#myCanvas').addClass("title_01");
$('#comfire').addClass("comfire1");
/* var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var img= new Image();
img.src="images/bigbanner.jpg";
img.onload = function () //确保图片已经加载完毕
{