Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML
Author Message
JeRicHoOL
Worker
Worker



Joined: Jul 20, 2008
Posts: 126
Location: Germany

PostPosted: Sat Aug 23, 2008 6:28 am Reply with quote

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 
View user's profile Send private message MSN Messenger
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Aug 23, 2008 7:23 am Reply with quote

Make the splash page index.html and then make the hyperlink point to the index.php of your Nuke installation.
 
View user's profile Send private message
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Sat Aug 23, 2008 7:40 am Reply with quote

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 
View user's profile Send private message Visit poster's website
JeRicHoOL







PostPosted: Sat Aug 23, 2008 7:49 am Reply with quote

Ok. When I go on www.the-kliq.com it directly goes to the homepage of my Nuke site. How can I make that if people go to www.the-kliq.com (http://www.the-kliq.com ; the-kliq.com) the logo appears?

Currently the logo is under www.the-kliq.com/index.html and if I click it, it goes to www.the-kliq.com/index.php.
 
jakec







PostPosted: Sat Aug 23, 2008 8:21 am Reply with quote

You should be able to force index.html to be your default homepage by adding this to your .htaccess file:

DirectoryIndex index.html
 
jakec







PostPosted: Sat Aug 23, 2008 8:23 am Reply with quote

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







PostPosted: Sat Aug 23, 2008 8:32 am Reply with quote

Thank you very much. I got it to work. Very Happy

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







PostPosted: Sat Aug 23, 2008 9:05 am Reply with quote

OK, try this. I've made it compliant for you as well. Wink

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







PostPosted: Sat Aug 23, 2008 9:33 am Reply with quote

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. Smile

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







PostPosted: Sat Aug 23, 2008 9:48 am Reply with quote

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. Wink

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







PostPosted: Sat Aug 23, 2008 10:06 am Reply with quote

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. Very Happy
 
jakec







PostPosted: Sat Aug 23, 2008 10:27 am Reply with quote

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. Wink
 
JeRicHoOL







PostPosted: Sat Aug 23, 2008 1:46 pm Reply with quote

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.

Image

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. Very Happy
 
jakec







PostPosted: Sat Aug 23, 2008 2:03 pm Reply with quote

Glad you got it working, thanks for reporting back.
 
JeRicHoOL







PostPosted: Sat Aug 23, 2008 4:00 pm Reply with quote

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







PostPosted: Sun Aug 24, 2008 5:04 am Reply with quote

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:

Image
Image

Here are my MIME settings:

Image
Image
Image
Image

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







PostPosted: Sun Aug 24, 2008 5:50 am Reply with quote

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







PostPosted: Sun Aug 24, 2008 9:38 am Reply with quote

I will highly recommend flash for this as flash player plugin is installed on more that 90% computers connected to internet.
 
JeRicHoOL







PostPosted: Sun Aug 24, 2008 2:09 pm Reply with quote

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

PostPosted: Sun Aug 24, 2008 2:24 pm Reply with quote

i suggest you read this before you continue:

http://internet.ducttapemarketing.com/2006/04/how_a_splash_pa.html
 
View user's profile Send private message Send e-mail
JeRicHoOL







PostPosted: Sun Aug 24, 2008 6:52 pm Reply with quote

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. Smile
 
wHiTeHaT







PostPosted: Mon Aug 25, 2008 3:38 pm Reply with quote

what you think of:

http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm

i tested it on theire site and it seems pretty cool.
For the flash question...
you need to create a flashfile what contain the song you want to let hear .
You could also insert your image(s) with it.

Tutorial splash with flash (sorry no sound):
http://www.unleash.com/davidk/flash/flash01.html

another good (recomended) alternative for you could be:
http://www.swishzone.com/index.php
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> HTML

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©