okay. Jeg er bare totalt LOST lige nu ,
sådan her er min log ind form ;
- <form action="./" method="post" class="style2">
- <input type="text" name="username" class="loginboxusername" name="username" />
- <input type="password" name="password" class="loginboxpassword" name="password"/>
- <input type="submit" name="login" value="Log ind" />
- </form>
Infomation til siden;
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" type="text/css" href="http://www.b2f.dk/style.css"/>
- <script type="text/javascript" src="http://www.b2f.dk/jquery.js"></script>
- <title>B2F</title>
jquery.js har jeg kaldt den;
- (function($){
- $.fn.autofill = function(options) {
-
- var defaults = {
- password: false,
- swapclass: ''
- };
-
- var options = $.extend(defaults, options);
-
- return this.each(function() {
- obj = $(this);
- var type = obj.attr('type');
- var title = obj.attr('title');
-
- if(title =! '' && (type == 'text' || type == 'password')) {
- if(obj.val() == ''){
- if(type == 'password') obj = createAutofillObject(obj, 'text');
- obj.val(obj.attr('title'));
- handleInputFocus(obj, type);
- }
- }
-
- });
- };
- })(jQuery);
-
- function handleInputFocus (obj, type) {
- obj.focus(function(){
- if(obj.val() == '' || obj.val() == obj.attr('title')) obj.val('');
- if(type == 'password'){
- obj = createAutofillObject(obj, 'password');
- obj.focus();
- }
- handleInputBlur(obj, type);
- });
- }
-
- function handleInputBlur (obj, type) {
- obj.blur(function(){
- if(type != 'password') if(obj.val() == '' || obj.val() == obj.attr('title')) obj.val(obj.attr('title'));
- });
- }
-
- function createAutofillObject (obj, type) {
- var rep = $("<input type='"+type+"' />").attr("style", obj.attr("style") != null ? obj.attr("style") : '').attr("id", obj.attr("id")).attr("name", obj.attr("name")).attr("class", obj.attr("class")).attr("title", obj.attr("title")).val(obj.val()).insertBefore(obj);
- obj.remove();
- return rep;
- }
Jeg har prøvet at kalde den <script type="text/javascript" src="http://www.b2f.dk/jquery.js"></script>
og <script type="text/javascript"> og skrevet koden osv..
</script>