Friday 19 September 2008 photo 23/107
|
function updateUserStatus() { $("#userStatus").load("userStatusbar.html"); setTimer(); } function setTimer() { setTimeout("updateUserStatus()",120000); } setTimer(); function submitByKey(e,form){ var key=e.keyCode || e.which; if(key == 13){ form.submit(); } } function urlByKey(e,url){ var key=e.keyCode || e.which; if(key == 13){ window.location.href = url; } } $(document).ready(function(){ $("#searchBtn").click(function() { var searchValue = $('#searchField').attr('value'); if(searchValue == "Hitta användare" || searchValue == undefined) { searchValue = ""; } window.location.href = 'http://bilddagboken.se/p/search.html?action=searchPersons&topsearch=1&username=' + searchValue; }); }); var gbLink = "0 nya gästboksinlägg"; var pmLink = "0 nya privata meddelanden"; var commentsLink = "0 nya kommenterade bilder"; var forumLink = "0 uppdaterade forumtrådar"; var updateTooltip = "Uppdatera"; var uploadTooltip = "Ladda upp bilder"; $(document).ready(function(){ $("#gbLink").tooltip({ bodyHandler: function() { return gbLink; }, showURL: false }); $("#pmLink").tooltip({ bodyHandler: function() { return pmLink; }, showURL: false }); $("#commentsLink").tooltip({ bodyHandler: function() { return commentsLink; }, showURL: false }); $("#forumLink").tooltip({ bodyHandler: function() { return forumLink; }, showURL: false }); $("#reloadImg").tooltip({ bodyHandler: function() { return updateTooltip; }, showURL: false }); $("#uploadImg").tooltip({ bodyHandler: function() { return uploadTooltip; }, showURL: false }); $("#reloadImg").hover(function(){ $(this).attr("src","http://images2.bilddagboken.se/img/reload_hover.gif"); },function(){ $(this).attr("src","http://images2.bilddagboken.se/img/reload.gif"); }); $("#reloadImg").click(function(){ $("#userStatus").load("userStatusbar.html"); return false; }); }); Min dagbok Vänner Slumpa bild | Dagens bilder | Tävlingar | Album | Forum Sök Välj tema | Inloggade: 33 789 | Logga ut
Annons