Script

Filter
2004-06-02

Fullskärmsfönster

Javascript
Ladda en websida i fullskärmsläge
<html>
<head>
<title>Fullscreen</title>
<script language="javascript">
function open_fullscreen(url) {
    fullscreenWindow = window.open(url, 'newWindow', 'top=0,left=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',fullscreen=1');
}
</script>
</head>
<body><table align="center" height="90%">
<tr>
<td align="center"><a href="javascript:open_fullscreen('fullscreen.htm');">Open fullscreen</a><br>
&nbsp;<br>
&nbsp;<br>
<a href="javascript:close();">Close</a></td>
</tr>
</table>
</body>
</html> 
2004-05-14

Favorit ikon

Html
Lägg till en favorit-ikon för din sida
This is a feature introduced by Internet Explorer 5.x. By default, the browser requests a file named
"favicon.ico" at the same base URL as the document being bookmarked. If it doesn't find this file,
then it will try again in the root directory of your site. Web authors can specify a different path
for the icon file with a <LINK> element like this: <LINK REL="SHORTCUT ICON" HREF="/pathname/filename.ico"> 

The image should be 16 by 16 pixels, in the Windows icon format. If your graphics program doesn't
support the Windows icon format, you can use a tool like the free Java-based icon generator at
<URL:http://www.favicon.com/> to convert/create your icon. 

For further information, see <URL:http://msdn.microsoft.com/workshop/Author/dhtml/howto/ShortcutIcon.asp>
or search for "favicon.ico" at <URL:http://msdn.microsoft.com/workshop/essentials/versions/ICPIE5.asp>
2004-05-13

Färgade scroll bars

Css
Designa dina scroll bars med egna färger
body
{
   scrollbar-face-color: #484677; 
   scrollbar-shadow-color: black; 
   scrollbar-highlight-color: black; 
   scrollbar-3dlight-color: black;   
   scrollbar-darkshadow-color: black;
   scrollbar-track-color: black; 
   scrollbar-arrow-color: black;
} 
2004-05-13

Skoj med CSS

Css
Testa att skriva in detta i ditt style sheet
html {direction:rtl;} 
2004-05-07

General Cookie handling

Javascript
Written by: Bill Dortch, hIdaho Design
//  ********************* General Cookie handling *********************
//  Cookie Functions - Second Helping  (21-Jan-96)
//  Written by:  Bill Dortch, hIdaho Design <bdortch@netw.com>
//  The following functions are released to the public domain.

function getCookioffset) {  
    var endstr = document.cookie.indexOf (";", offset);  
    if (endstr == -1)    
        endstr = document.cookie.length;  
        return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
    var arg = name + "=";  
    var alen = arg.length;  
    var clen = document.cookie.length;  
    var i = 0;  
    while (i < clen) {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
        return getCookij);    
        i = document.cookie.indexOf(" ", i) + 1;    
        if (i == 0) break;   
    }  

    return null;
}

function SetCookie (name, value) {  

    var argv = SetCookie.arguments;  
    var argc = SetCookie.arguments.length;  
    var expires = (argc > 2) ? argv[2] : null;  
    var path = (argc > 3) ? argv[3] : null;  
    var domain = (argc > 4) ? argv[4] : null;  
    var secure = (argc > 5) ? argv[5] : false;  
    document.cookie = name + "=" + escape (value) + 
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
    ((path == null) ? "" : ("; path=" + path)) +  
    ((domain == null) ? "" : ("; domain=" + domain)) +    
    ((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {  
    var exp = new Date();  
    exp.setTime (exp.getTime() - 1);  
    // This cookie is history  
    var cval = GetCookie (name);  
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
} 
🙂