Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Changing fonts via skin swiching
Previous Previous
 
Next Next
New Post 3/23/2008 2:10 PM
Unresolved
User is offline FMeyer
15 posts
10th Ranked


Changing fonts via skin swiching 

My goal is to increase/decrease the size of the text on my site via a single click. I copied the skin-switching code from the DNN site but nothing (other than a page refresh) happens when clicking the links.

I am feeling a bit dense here... I am not sure how setting a cookie value to change skins is supposed to work. How does DNN know which skin to use? If I have 10 skins with different names on my site, just providing a number (e.g., 0, 1, 2) does not seem to be enough info to indicate the correct skin. Is the skin supposed to have a specific name with a numeric value appended to the end?

And please let me know if there is a better way to change font sizes other than switching skins.

 

Thanks in advance for your wisdom!

Code copied from DNN site:
<script language="Javascript">
function setSkinCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}
</script>
<script language="Javascript">
function sizeText(size)
{
    setSkinCookie("DotNetNuke_Skin_Text_Size", size, new Date("December 31, 2010 23:59:59"),"/");
    location.reload();
}
</script>

<a href=" void(0)"><img src="/Portals/_default/Skins/DNN-Minimal/controls/images/icon_textsmall_on.gif" onClick="sizeText(0)" width="17" height="17" alt="Small text" border="0"></a>
<a href=" void(0)"><img src="/Portals/_default/Skins/DNN-Minimal/controls/images/icon_textmedium.gif" onClick="sizeText(1)" width="17" height="17" alt="Medium text" border="0"></a>
<a href=" void(0)"><img src="/Portals/_default/Skins/DNN-Minimal/controls/images/icon_textlarge.gif" onClick="sizeText(2)" width="17" height="17" alt="Large text" border="0"></a>

 
New Post 3/24/2008 10:32 AM
User is offline marga
1 posts
10th Ranked


Re: Changing fonts via skin swiching 

Today I had the same idea! But no solution. I tried with Speerio Skinergy, but I was not able to download it from the site. Let me know if you try a solution.

Massimiliano

 
New Post 3/25/2008 6:23 AM
User is offline Marius M
2 posts
10th Ranked


Re: Changing fonts via skin swiching 

http://www.thinkofdesign.com/DotNetNukeSkins/FreeSkins/tabid/54/ctl/ArticleView/mid/490/articleId/46/BeyondCSS.aspx

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Changing fonts via skin swiching
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP