another test
and
this one at least workI created/extracted the css style part from the others templates of this forum, and saved it with the name of their respective templates
So the default hfs style is called hfs-default.css
And the clean template styles is called hfs-clean.css
So it was easy to get some cool css to use J
Now I got this folder on my hd, attention to the name of the folder that I drag and drop on the hfs root of the virtual file system
After drag it and drop to the hfs so I got this
And I open the hfs with the default template loaded and change this
On the first section of the template I selected this lines and deleted it
<style type="text/css">
%style%
</style>
And replace it with
<!--
var doAlerts=false;
function changeSheets(whichSheet){
whichSheet=whichSheet-1;
if(document.styleSheets){
var c = document.styleSheets.length;
if (doAlerts) alert('Change to Style '+(whichSheet+1));
for(var i=0;i<c;i++){
if(i!=whichSheet){
document.styleSheets[i].disabled=true;
}else{
document.styleSheets[i].disabled=false;
}
}
}
}
//-->
</script>
<LINK REL=Stylesheet HREF="/hfs-css/hfs-default.css" TYPE="text/css" TITLE="default">
<LINK REL=Stylesheet HREF="/hfs-css/hfs-black.css" TYPE="text/css" TITLE="black">
<LINK REL=Stylesheet HREF="/hfs-css/hfs-clean.css" TYPE="text/css" TITLE="clean">
<LINK REL=Stylesheet HREF="/hfs-css/hfs-macromedia.css" TYPE="text/css" TITLE="macromedia">
<LINK REL=Stylesheet HREF="/hfs-css/hfs-lightmusk.css" TYPE="text/css" TITLE="lightmusk">
Also delete these now useless lines
[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#DDF; padding:10px; }
p { margin:0 }
a { text-decoration:none; background-color:Transparent; color:#05F; }
a:visited { color:#55F; }
a:hover { background-color:#EEF; }
img { border-style:none }
td { font-size:10pt; background:#FFF; border:1px solid #BBF }
td img { vertical-align:top }
th, th a { color:#555; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#888; background:#EEE; padding:3px; border:1px solid #DDD; border-bottom:3px solid #DDD; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold; }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
border-bottom: 4px solid #BBF;
border-top: 4px solid #BBF;
border-left: 1px dotted #BBF;
border-right: 1px dotted #BBF;
background:#F3F3FF;
padding:15px;
margin:15px;
}
.comment { font-size:7pt; color:#888; background:#EEE; padding:3px; border:1px solid #DDD; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }
And pasted this code on the template where do you want to let the user change the css file loaded
<a href="JavaScript:changeSheets(1)">Style default</a>
<a href="JavaScript:changeSheets(2)">Style black</a>
<a href="JavaScript:changeSheets(3)">Style clean</a>
<a href="JavaScript:changeSheets(4)">Style macromedia</a>
<a href="JavaScript:changeSheets(5)">Style lightmusk</a>
I guess that it should be compatible with all browsers
But be my guest improve the code…
Here is the zip file with the default template and all the files needed to make it work
And here are some sample images of it working on the internet explorer and opera, bu my firefox is breaked, so if anyone could test it ...
Thanks…
ie-default
Opera-default
Ie-back
Opera-black
Ie-clean
Opera-clean
Ie-macromedia
Opera-macromedia
Ie-lightmusk
Opera-lightmusk
this is a small thing , but it change the entire view type of the hfs...someone with skills on css could do aven more complex styles with this, and give the user the possibiliti to change the css since the template yet could not be changed remotely...
[attachment deleted by admin]