Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Design

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-11-2004, 10:47 PM
YajivMalhotra's Avatar
Novice Webmaster
 
Join Date: Oct 2004
Location: Johor Bahru, Malaysia
Posts: 41
Rep Power: 0
YajivMalhotra is on a distinguished road
Send a message via Yahoo to YajivMalhotra
tolong sket pasal style...

hmm aku nak bantuan sket.. sesapa sini tahu tak coding untuk load CSS file baru.

katakan by default aku pakai Orange.css .... theme site aku warna orange. so user bleh pilih theme lain... katakan... Black..
so dia akan load black.css....

sesapa ader coding untuk ni tak?.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-11-2004, 10:51 AM
zaimlah's Avatar
Inspired Webmaster
 
Join Date: Jul 2001
Location: ttdi
Posts: 129
Rep Power: 89
zaimlah is on a distinguished road
sebenarnya, benda ni boleh buat guna html/javascript saja, tak payah guna php.

under html, guna 'alternate stylesheet', contohnya:
Code:
<html>
<head>
   <title>...</title>

   <!--default css:-->
   <link rel="stylesheet" href="orange.css" type="text/css">

   <!--alternate css:-->
   <link rel="alternate stylesheet" href="black.css" type="text/css" title="black">
   <link rel="alternate stylesheet" href="blue.css" type="text/css" title="blue">
</head>
....
kalau orang guna browser macam firefox atau mozilla (maybe opera jugak), ada option dalam browser utk switch the stylesheet (under menu View->Page Style utk firefox). malangnya, IE tak ada option ni (afaik)

atau alternatively, guna javascript utk switch style. personally saya guna script dari website alistapart.com: http://www.alistapart.com/articles/alternate/
atau http://www.alistapart.com/articles/n4switch/ (utk bagi compatible dgn netscape 4). dalam article tu dia explain everything so no use kalau saya repeat kat sini

good luck!
__________________
blog:zaim_bakar_blog | biz:box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-11-2004, 12:40 PM
YajivMalhotra's Avatar
Novice Webmaster
 
Join Date: Oct 2004
Location: Johor Bahru, Malaysia
Posts: 41
Rep Power: 0
YajivMalhotra is on a distinguished road
Send a message via Yahoo to YajivMalhotra
ok... thanks.. cara ni mudah.. thanks alot

sebab kita tnegah testing code sendiri... dalam php.. still ader prob sket..... dah working nanti aku akan post tutorial tu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tolong pasal laman web kaiba910 Webmaster Tools 8 12-10-2006 03:47 PM
Tolong pasal nak buat laman web. kaiba910 Webmaster Tools 19 14-09-2006 02:17 PM
chart... tolong sket... ridz_021 Website Programming 4 08-02-2006 01:19 PM
tolong komen pasal web n pc MIMOS marikh Websites Review and Suggestion 9 16-02-2005 12:22 PM
Mintak Tolong Pasal Potong Grarik ke TABLE?? GGG Graphic Design 9 24-09-2003 06:18 PM



All times are GMT +8. The time now is 08:55 PM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58