| View previous topic :: View next topic |
| Author |
Message |
Bubblewrap
Joined: 31 Dec 2006 Posts: 12 Location: Netherlands
Digg It |
Posted: Sun Dec 31, 2006 6:38 pm Post subject: Online Wii Menu Interface |
|
|
I'm trying to recreate the wii menu interface in photoshop so i can eventually create my personal homepage for my wii out of this, thats not much work but im looking for a good peace of coding so i can get the date of today in my menu just like in the wii menu:
Dayname/Daynumber/Monthnumber
for example:
Su 31/12
can someone assist me on this one?
if you have some photoshopping skills you can easily save and edit my version online here and create your own online interface as you like it.
i'll upload a starterskit in the near future for people that like it...
Have a look at my website in my profile (the 3xw button under this post), ill edit post with link when i get 3 posts and 2 days of membership! |
|
| Back to top |
|
 |
swimgod
Joined: 30 Nov 2006 Posts: 34
Digg It |
Posted: Mon Jan 01, 2007 12:55 am Post subject: |
|
|
hope your server/website has php,
(most ones do, if it is a linux server then im sure it does)
| Code: |
<?
echo date("D j/n");
?>
|
edit:the wii doesn't have 2 letter dates?... fixed this post code to put what the wii does have 
Last edited by swimgod on Mon Jan 01, 2007 1:05 am; edited 2 times in total |
|
| Back to top |
|
 |
Cobalt`
Joined: 20 Dec 2006 Posts: 101
Digg It |
Posted: Mon Jan 01, 2007 1:02 am Post subject: |
|
|
in php:
| Code: |
<?php
$day = substr(date('D'),0,2);
$rest = date('d\/m');
print $day . " " . $rest;
?>
|
as swimgod says.. 3 strings ;O
| Code: |
<?php
print date('D d\/m');
?>
|
@swimgod: :p two different approaches, same result haha awesome.. btw you should start really adding php in <?php :p
in javascript:
| Code: |
<script type="text/javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var date = currentTime.getDay()
if(date == 0)
{
date = 'Sun';
} else if (date == 1)
{
date = 'Mon';
} else if (date == 2)
{
date = 'Tue';
} else if (date == 3)
{
date = 'Wed';
} else if (date == 4)
{
date = 'Thu';
} else if (date == 5)
{
date = 'Fri';
} else
{
date = 'Sat';
}
document.write(date + " " + day + "/" + month)
//-->
</script>
|
I suck at JS XP |
|
| Back to top |
|
 |
swimgod
Joined: 30 Nov 2006 Posts: 34
Digg It |
Posted: Mon Jan 01, 2007 1:26 am Post subject: |
|
|
| Cobalt` wrote: | in php:
| Code: |
<?php
$day = substr(date('D'),0,2);
$rest = date('d\/m');
print $day . " " . $rest;
?>
|
as swimgod says.. 3 strings ;O
| Code: |
<?php
print date('D d\/m');
?>
|
@swimgod: :p two different approaches, same result haha awesome.. btw you should start really adding php in <?php :p
in javascript:
| Code: |
<script type="text/javascript">
<!--
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var date = currentTime.getDay()
if(date == 0)
{
date = 'Sun';
} else if (date == 1)
{
date = 'Mon';
} else if (date == 2)
{
date = 'Tue';
} else if (date == 3)
{
date = 'Wed';
} else if (date == 4)
{
date = 'Thu';
} else if (date == 5)
{
date = 'Fri';
} else
{
date = 'Sat';
}
document.write(date + " " + day + "/" + month)
//-->
</script>
|
I suck at JS XP |
i normaly don't because the default php.ini setting is to allow <? and ?> tags. but its true that it is more widely used to put the php in there . and i forgot about the substr function :E.
php is great isn't it? |
|
| Back to top |
|
 |
Cobalt`
Joined: 20 Dec 2006 Posts: 101
Digg It |
Posted: Mon Jan 01, 2007 2:10 am Post subject: |
|
|
yep - my favorite language of all  |
|
| Back to top |
|
 |
Bubblewrap
Joined: 31 Dec 2006 Posts: 12 Location: Netherlands
Digg It |
Posted: Mon Jan 01, 2007 2:02 pm Post subject: |
|
|
| Thanks for the help guys! Yes my server runs php so ill just use that, im no big star in php yet so now should i just use css to change font, color and size? And what do you think of my recreation? Hehe, thanks in advance! |
|
| Back to top |
|
 |
Cobalt`
Joined: 20 Dec 2006 Posts: 101
Digg It |
Posted: Mon Jan 01, 2007 2:33 pm Post subject: |
|
|
| Bubblewrap wrote: | | Thanks for the help guys! Yes my server runs php so ill just use that, im no big star in php yet so now should i just use css to change font, color and size? And what do you think of my recreation? Hehe, thanks in advance! |
I provided you with a javascript version. I think me and swimgod's php codes are different and yet they work well, use whichever one you want
And the recreation is quite stunning just a comment on how much darker the blue is.. overall its smooth the channels are a bit too organised (the noise) but overall its cool  |
|
| Back to top |
|
 |
|