Shimmishim
Elite Member
my index.php makes calls to a bunch of other php files....
<?php
include "connect.php";
include "user_get_info.php";
include "functions.php";
echo "<link rel='stylesheet' href='weblog.css' type='text/css'>";
include "menu_top.php";
if (isset ($error)) {
include "error.php";
}
elseif (isset ($weblog)) {
if ($weblog == 'item_add') {
include "weblog_item_add.php";
}
elseif ($weblog == 'item_edit') {
include "weblog_item_edit.php";
}
elseif ($weblog == 'item_delete') {
include "weblog_item_delete.php";
}
elseif ($weblog == 'item_submit') {
include "weblog_item_submit.php";
}
elseif ($weblog == 'item_review') {
include "weblog_item_review.php";
}
elseif ($weblog == 'reaction_edit') {
include "weblog_reaction_edit.php";
}
elseif ($weblog == 'reaction_delete') {
include "weblog_reaction_delete.php";
}
elseif ($weblog == 'archive') {
include "weblog_archive.php";
}
elseif ($weblog == 'search') {
include "weblog_search.php";
}
else {
include "weblog_item_display.php";
}
}
elseif (isset ($user)) {
if ($user == 'register') {
include "user_register.php";
}
elseif ($user == 'pm') {
include "user_pm.php";
}
elseif ($user == 'overview') {
include "user_overview.php";
}
elseif ($user == 'admin') {
include "user_admin.php";
}
elseif ($user == 'poll') {
include "user_poll.php";
}
}
else {
include "weblog_default.php";
}
include "menu_right.php";
echo "<div id='banner'>
</div>";
?>
that's what it looks like...
now i found a site taht generates html codes to use to play music in the background..
i was wondering how i could stick this into my index.php to get it to play the music or would i have to generate a new file like music.php in order to play the music...
here is the generated code anyway:
(soundFile.indexOf(",") > 0) {var sounds = soundFile.split(",");soundFile = sounds[Math.floor(Math.random()*sounds.length)];}if(navigator.plugins.length>0){
if (navigator.mimeTypes["audio/mp3"] && navigator.mimeTypes["audio/mp3"].enabledPlugin) document.write('<embed src="'+soundFile+'" autostart="true" loop="true" controls="LargeConsole" width=145 height=35></embed>');}
else {
document.write('<embed src="'+soundFile+'" autostart="true" loop="true" width=70 height=45></embed>');}
//-->
</script>
<noscript><embed src="http://(this is where the link goes)" autostart="true" loop="true"></embed></noscript>
<noembed><bgsound src="http://(this is where the link goes)" loop=true></noembed>
thanks for the help!
<?php
include "connect.php";
include "user_get_info.php";
include "functions.php";
echo "<link rel='stylesheet' href='weblog.css' type='text/css'>";
include "menu_top.php";
if (isset ($error)) {
include "error.php";
}
elseif (isset ($weblog)) {
if ($weblog == 'item_add') {
include "weblog_item_add.php";
}
elseif ($weblog == 'item_edit') {
include "weblog_item_edit.php";
}
elseif ($weblog == 'item_delete') {
include "weblog_item_delete.php";
}
elseif ($weblog == 'item_submit') {
include "weblog_item_submit.php";
}
elseif ($weblog == 'item_review') {
include "weblog_item_review.php";
}
elseif ($weblog == 'reaction_edit') {
include "weblog_reaction_edit.php";
}
elseif ($weblog == 'reaction_delete') {
include "weblog_reaction_delete.php";
}
elseif ($weblog == 'archive') {
include "weblog_archive.php";
}
elseif ($weblog == 'search') {
include "weblog_search.php";
}
else {
include "weblog_item_display.php";
}
}
elseif (isset ($user)) {
if ($user == 'register') {
include "user_register.php";
}
elseif ($user == 'pm') {
include "user_pm.php";
}
elseif ($user == 'overview') {
include "user_overview.php";
}
elseif ($user == 'admin') {
include "user_admin.php";
}
elseif ($user == 'poll') {
include "user_poll.php";
}
}
else {
include "weblog_default.php";
}
include "menu_right.php";
echo "<div id='banner'>
</div>";
?>
that's what it looks like...
now i found a site taht generates html codes to use to play music in the background..
i was wondering how i could stick this into my index.php to get it to play the music or would i have to generate a new file like music.php in order to play the music...
here is the generated code anyway:
(soundFile.indexOf(",") > 0) {var sounds = soundFile.split(",");soundFile = sounds[Math.floor(Math.random()*sounds.length)];}if(navigator.plugins.length>0){
if (navigator.mimeTypes["audio/mp3"] && navigator.mimeTypes["audio/mp3"].enabledPlugin) document.write('<embed src="'+soundFile+'" autostart="true" loop="true" controls="LargeConsole" width=145 height=35></embed>');}
else {
document.write('<embed src="'+soundFile+'" autostart="true" loop="true" width=70 height=45></embed>');}
//-->
</script>
<noscript><embed src="http://(this is where the link goes)" autostart="true" loop="true"></embed></noscript>
<noembed><bgsound src="http://(this is where the link goes)" loop=true></noembed>
thanks for the help!