Author |
Message |
JeRicHoOL
Worker


Joined: Jul 20, 2008
Posts: 126
Location: Germany
|
Posted:
Sat Aug 23, 2008 6:28 am |
|
Hi,
I want to have some kind of "Enter" page when people go on my website. Entering page like that they go on my website, a logo appears on black background and they have to click the logo to get redirected to my RavenNuke "Home" page.
Here's my html code.
Code:<html>
<head>
<title>The Kliq</title>
</head>
<body>
<body bgcolor="#000000">
<p>
<a href="http://www.the-kliq.com">
<img border="0" src="http://www.the-kliq.com/images/tk_logo.png" alt="The Kliq Logo" width="1000" height="500">
</a>
</p>
</body>
</html>
|
I believe something is not correctly with the link I used as <a href=>
I think that's the place where I must add the link to the site the logo should link me to. So what is the file I must put in there?
Thanks in advance.[/code]
- Code edited!
EDIT: The href code is now correctly but how can I do it that if people go to www.the-kliq.com the logo appears, they click it and then they get redirected to www.the-kliq.com/index or index.html |
Last edited by JeRicHoOL on Sun Aug 24, 2008 5:05 am; edited 3 times in total |
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Sat Aug 23, 2008 7:23 am |
|
Make the splash page index.html and then make the hyperlink point to the index.php of your Nuke installation. |
|
|
|
 |
jestrella
Moderator

Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Sat Aug 23, 2008 7:40 am |
|
or you can use DHTML to get the desired effect |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 7:49 am |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 8:21 am |
|
You should be able to force index.html to be your default homepage by adding this to your .htaccess file:
DirectoryIndex index.html |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 8:23 am |
|
Just realised this should already be in your .htaccess file you just need to move index.html so it is first in the list. |
|
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 8:32 am |
|
Thank you very much. I got it to work.
The 1st two lines in my .htaccess have were
#Options All -Indexes
DirectoryIndex index.php index.htm index.html
I changed it like you said
#Options All -Indexes
DirectoryIndex index.html index.php index.htm
Now it works perfectly. (Don't wonder, I took the index.html file out to add stuff there). Well, one more little thing. How can I move the picture a little bit down? |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 9:05 am |
|
OK, try this. I've made it compliant for you as well.
I've been a bit naughty and added <p>nbsp;</p> to shift the image down slightly.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>The Kliq</title>
</head>
<body bgcolor="#000000">
<p>nbsp;</p>
<div align="center"><a href="http://www.the-kliq.com/index.php"><img src="http://www.the-kliq.com/images/tk_logo.png" alt="The Kliq Logo" width="1000" height="500" border="0" align="middle"/></a></div>
</body>
</html>
|
|
|
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 9:33 am |
|
Thank you jakec but your code irritated me a bit. What's all the stuff above the <head>.
Your code worked too but the picture was now too low for me. I'm a perfectionist.^^
I googled a bit and came across the <br> tag.
I added this above my "<a href=" code and it moved my picture a bit down. It's in the perfect place now.
Thanks again for your help.
EDIT: I got one more question. I want to add background music. Again I have problems having the right path. The thing is I don't want the .mp3 file in my root folder. I have 2 websites and I would like to have music in a seperate folder so that both sites can use it. Is that possible or not? |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 9:48 am |
|
You should always try and make your code compliant with the relevant standard. This should ensure the appearance of you site is similar in most browsers. Sorry if it irritated you, but just trying to teach you the correct way.
The correct way to postion the DIV is probably using CSS, but as long as you are getting what you were looking for then great.
Yes it is possible to add music, but I'm not sure how your server is setup so I can't give you the precise code. |
Last edited by jakec on Sat Aug 23, 2008 12:01 pm; edited 1 time in total |
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 10:06 am |
|
My site is firefox based and I'll only support this browser just in case other browsers show things wrong.
Regarding the right link I'll contact my host because I can't provide you the path to my root (includes account information).
Anyways, that's the code to add background music.
<bgsound src="path/link to your song" loop="infinite">
Thanks again. I think this case is solved.  |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 10:27 am |
|
JeRicHoOL wrote: | My site is firefox based and I'll only support this browser just in case other browsers show things wrong. |
OK, it's just good practice.  |
|
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 1:46 pm |
|
Well for some reason it still doesn't work. Firefox doesn't support such <bgsound> codes. This is IE based. I already posted my problem on 2 Firefox support forums.
----------
EDIT: I got it to work. Finally.
I'll try to explain my steps.
Here's a picture of my code which I added to my index.html file.
I also looked on google and on some other forums where I also posted my problem and came across the fact that I need to install "Quicktime Plugin" and "Windows Media Player Firefox Plugin". I did that. I am not sure if the plugins take part at the working sound or only the fact that I used another code. I will test this tomorrow and will let you people know about it. I'm happy now that I reached my goal.
Thanks anyways.  |
|
|
|
 |
jakec

|
Posted:
Sat Aug 23, 2008 2:03 pm |
|
Glad you got it working, thanks for reporting back. |
|
|
|
 |
JeRicHoOL

|
Posted:
Sat Aug 23, 2008 4:00 pm |
|
I have tested it.
I uninstalled the "Windows Media Player Firefox Plugin" first and it didn't work no more which definately means you need this plugin.
After this I re-installed it.
Then I uninstalled "Quicktime Plugin" and it still worked which means this plugin is not necessary but I recommend to install it because Quicktime is therefor watching & hearing media files/videos/sounds on the internet.
Creating an <object> with type="application/x-mplayer2" causes Firefox to call the Windows Media Player Firefox Plugin (not QuickTime). |
|
|
|
 |
JeRicHoOL

|
Posted:
Sun Aug 24, 2008 5:04 am |
|
Reply from a guy on a firefox support forum:
With this code you force people to install exactly this "Windows Media Player Firefox Plugin" <object> with type="application/x-mplayer2". You propably only want that it plays the .mp3 file, no matter what plugin. Not everybody has Windows and not everybody has this plugin installed.
The MIME-Type of a MP3-file is "audio/mpeg". I recommend you to use <object ... type="audio/mpeg"> and let the users browser decide what plugin he installs.
My reply:
I changed the "type" to type="audio/mpeg" and after that a pop up bar appeared on the top of my screen "Install Missing Plugins". I clicked it and it asked me to install QuickTime. I did that. I also did the MIME settings like here http://kb.mozillazine.org/Quicktime#Quicktime_browser_settings
Here are my file type settings or QuickTime:
Here are my MIME settings:
The file I want to playback is a .mp3 file and I checked mp3 in the settings but with no result.
Or has the code to be type="audio" or even type="mp3" ?
So far it only works with the Windows Media Player Firefox Plugin but I would like to get it working with Quicktime too.
I hope you can help me out.
----------
I'll let you guys know when I found out how to play background music with QuickTime on a Firefox browser. |
|
|
|
 |
jakec

|
Posted:
Sun Aug 24, 2008 5:50 am |
|
Just to throw something else into the mix you could also use a flash player. |
Last edited by jakec on Sun Aug 24, 2008 9:48 am; edited 1 time in total |
|
|
 |
jestrella

|
Posted:
Sun Aug 24, 2008 9:38 am |
|
I will highly recommend flash for this as flash player plugin is installed on more that 90% computers connected to internet. |
|
|
|
 |
JeRicHoOL

|
Posted:
Sun Aug 24, 2008 2:09 pm |
|
Tell me how the code should look like if I want to use flash?
Would it be possible that the player stays invisible with flash? |
|
|
|
 |
wHiTeHaT
Life Cycles Becoming CPU Cycles

Joined: Jul 18, 2004
Posts: 579
|
Posted:
Sun Aug 24, 2008 2:24 pm |
|
|
|
 |
JeRicHoOL

|
Posted:
Sun Aug 24, 2008 6:52 pm |
|
Well, I don't care what search engines do. I don't have my forum to appear on a search engine. I also don't care about visitors because it's not an open site. Only chosen people are allowed to join (mostly/only people I know). The people who I will allow to join don't have dial-up. For me it's not about having many users. Plus, if the splash page annoys anyone then they can bookmark the site with "index.php" at the end to directly enter the site.
But thanks for warning me.^^
Back on topic please.  |
|
|
|
 |
wHiTeHaT

|
Posted:
Mon Aug 25, 2008 3:38 pm |
|
|
|
 |
|