<?php
//require 'includes/db.inc.php';
require 'includes/configs.inc.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php $site_name ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<script type="text/javascript" src="/js/jquery.imageTickBox.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("input:[type=checkbox]").imageTickBox({
tickedImage: "/images/checked.png",
unTickedImage: "/images/unchecked.png",
imageClass: "tickbox"
});
});
</script>
</head>
<body>
<div id="mirror" class="center">
<!--some code deleted-->
<input type="checkbox" id="Music" name="hobbies[]" value="Music">
<!--some code deleted-->
</div>
</body>
</html>
上面的代码有任何问题???? name index.php并把它放在根目录。复选框图片替换,什么都没有发生
,但不行,我看到了jQuery插件复选框在导
http://blog.leenix.co.uk/2009/10/jquery-plugin-imagetickbox-change-any.html
什么为u得到的错误... u能提供一个工作示例,并检查所有脚本/图像源路径/ css ... – 2010-08-28 19:15:57
没有错误,即时试图包括一些jquery插件取代复选框与图像,上面的脚本并没有改变我的复选框图像 – user259752 2010-08-28 19:20:17
不是问题,但你应该从这个选择'''删除':'jQuery ( “输入:[式=复选框]”)'。 – user113716 2010-08-28 19:29:51