HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Skin changer help
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
stebbi



Joined: 02 Sep 2008
Posts: 3

Posted: Thu Sep 04, 2008 3:07 pm     Skin changer help  



index.php

Code: <link href="skinFiles/default.css" rel="stylesheet" type="text/css" />

<link href="skinfiles/" rel="stylesheet" type="text/css" id="cssLoader" />

<script type="text/javascript">

index.php

Code: function changeSkin(css) {

   document.getElementById('cssLoader').href = css;

index.php
This was added buy a css coder who was helping me

Code: <style type="text/css">
<!--
@import url("css/main.css");
-->
</style>


options.php

Code: <?php
      $skinSql = '
         SELECT skin_id, thumb_name, css_name, cost
         FROM skins
         ORDER BY cost
         DESC';
      $skinQuery = mysql_query($skinSql);
      while($skin = mysql_fetch_assoc($skinQuery)) {
         echo'<img src="skinFiles/'.$skin['thumb_name'].'" class="skinImage" onclick="changeSkin(\'skinFiles/'.$skin['css_name'].'\')" />';
      }
      ?>

When I click on the thumbnail to load css skin nothing happens.
Thanks for your help
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> CSS
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group