My site here正在使用"uniform" jscript plugin,但它不起作用,我只是不确定将函数调用代码放在何处。
如果你去'联系我们',你会看到表格。这是代码:
<head>
<script src="/js/Uniform/jquery.uniform.js" type="text/javascript"></script>
<link rel="stylesheet" href="/css/Uniform.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript">
$("select, input, button, textarea").uniform();
</script>
</head>
<body class="contact">
<!--#include virtual="/Assets/Templates/Public/Franchise/Contact.asp"-->
<div class="middle-content-grey">
<%
If blnShowForm = True then
%>
<form name="FeedbackForm" method="post" action="Feedback.asp">
<input type="hidden" name="FormAction" value="New" />
<label>Name:
<span class="smaller">Main contact</span>
</label>
<input type="text" name="strCustomerName" value="<% = strCustomerName %>" size="50" maxlength="112" />
<br />
<label>Company Name:
<span class="smaller">If applicable</span>
</label>
<input type="text" name="strCompanyName" value="<% = strCompanyName %>" size="50" maxlength="100" />
<br />
<label>Email Address:
<span class="smaller">Primary email</span>
</label>
<input type="text" name="strEmailAddress" value="<% = strEmailAddress %>" size="50" maxlength="255" />
<br />
<label>Phone Number:
<span class="smaller">Primary phone</span>
</label>
<input type="text" name="strContactPhone" value="<% = strContactPhone %>" size="50" maxlength="20" />
<br />
<label>Comments:
<span class="smaller">Reason for your enquiry</span>
</label>
<textarea name="strComments" rows="8" value="<% = strComments %>" cols="30"></textarea>
<button class="medium blue form" type="submit">Submit</button>
<div class="spacer"></div>
</form>
</div>
<br />
</div>
</body>
它使用来自uniform.css的精灵图像。
如果有人能告诉我它应该去哪里,我们将不胜感激。
答案 0 :(得分:1)
我注意到的一件事是uniform.js收到错误,无法通过uniform()调用它。看起来统一需要jQuery 1.4+而你正在使用1.2.6。
来自uniform.js
/*
Uniform v1.7.5
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Requires jQuery 1.4 or newer
...
*/