sub-deacon
Members-
Posts
10 -
Joined
-
Last visited
Everything posted by sub-deacon
-
Thank you very much that was it. I dxcon't know how that got erased from my htpaccess file. Either way that did the trick. Thank you again.
-
After at least a couple years with no changes to the script my PHP include stopped working, no errors just does't pull my menu file into my pages anymore. My site is www.stmichaelroc.org, except for the index.htm and the site map page all other pages have the include for navigation. here is is my include script <?php include('menu.php'); ?> This is a copy of the script in menu.php <script language="JavaScript"> <!-- function go(){ if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none") { location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value } } //--> </script> <script language="JavaScript"> <!-- document.write('<form name="selecter"><select name="select1" size=1>'); document.write('<option value=none>Select your destination...'); document.write('<option value=none>--------------------'); document.write('<option value="index.htm">Home'); document.write('<option value="st_michael__menu.htm">Site Menu'); document.write('<option value="news.htm"> Cathedral News'); document.write('<option value="directions.htm">Directions and schedules'); document.write('<option value="events.htm">St. Michael Events'); document.write('<option value="what_is_orthodoxy.htm">What is Orthodox'); document.write('<option value="church_contacts.htm">Contact Information'); document.write('<option value="clergy.htm">Our Clergy'); document.write('<option value="hierarchs.htm">Our Hierarchs'); document.write('<option value="cultural.htm">Cultural Center'); document.write('<option value="links.htm">Web Links Page'); document.write('<option value="educational_pages.htm">Orthodox reference, and stories'); document.write('<option value="youth group.htm">Youth Pages'); document.write('</select>'); document.write('<INPUT TYPE="button" VALUE="Go" onclick="go()">'); document.write('</form>'); //--> </script> I can paste the raw javascript from the file into my pages and it works, I just can't figure out why the include will not. Also very important , even though I am pretty good at page design I am a novice at scripting especially PHP. Thank you
-
Thank you very much Dave, I had been stumbling through that for several days now. I have it up and running in my test box for now since I have to build the playlists that will be used on my actual site. I also included a little code for a start button since my sight will only change the playlist every hour or so. But here is the final code. when I get it all running on the site I will post a link so you can check it out. It hould fool you into think that it a actual streaming media when in reality it is not. Code: <script language="JavaScript"> <!-- link = new Array(7) link[1]="net radio/test 1.m3u"; link[2]="net radio/test 2.m3u"; link[3]="net radio/test 3.m3u"; link[4]="net radio/test 4.m3u"; link[5]="net radio/test 5.m3u"; link[6]="net radio/test 6.m3u"; function get_random(){ var ranNum= Math.floor(Math.random()*6+1); return ranNum; } function move() { var plist = get_random() window.location = (link[plist]) } //--> </script> </head> <body> <script language="JavaScript"> <!-- var y = window.setInterval('move()', 15000); //--> </SCRIPT> <center> <script language="JavaScript"> <!-- var plist = get_random() document.write('<A HREF="' +(link[plist])+ '"><IMG SRC="images/playup.gif"></A>') ; //--> </SCRIPT> </center> <p align="center"><b><font size="4" color="#0000FF">Please keep this window open to receive the stream. </font></b></p> <p align="center"><b><font size="4" color="#0000FF">You may minimize this window and enjoy the site</font></b></p> Again thank you very much, you da man!!!! Subdeacon William
-
Simply put , I assembled some pieces of javascript that is suppose to randomly choose a link to a m3u file and activate it and reapet this once an hour, though the timing is set to every 15 seconds just for testing. below is the javascript I am using. One note the tiomer worked fine with a single file directly named, it when I added the random selector and array that I am having issues. <script language="JavaScript"> <!-- function get_random(){ var ranNum= Math.floor(Math.random()*4+1); return ranNum; } function link(){ var plist = get_random() link = new Array(3) link[1]="net radio/test 1.m3u"; link[2]="net radio/test 2.m3u"; link[3]="net radio/test 3.m3u"; } var time = null function move() { window.location = (link[plist]) } //--> </script> </head> <body> <script language="JavaScript"> <!-- var y = window.setInterval('move()', 15000); //--> </SCRIPT> If there is any help out there I would really appreciate it. Thank you Subdeacon William
-
I need some help, it seems I'm getting over my head here. I am trying to develop a script, preferably javascript, to change the target of a hyperlink on two hour intervals. The big picture is that I am in the process of making several m3u files so I can psuedo stream audio content from my webpage. My idea is to set these up in an array and have them randomly picked every two hours so it wouls appear to be a true streaming. The next step would be to reactivate the hyperlink to the m3uy file so that someone listening for a time would not have to restart their media player to get the next m3u file. I been tinkering with some javascript but can only figure out the randomly picked target and I think I can get the timer part woking but putting ir all together seems daunting to me. Thank you for any help Subdeacon William
-
Thank you so much, thank you, thank you, and again thank you. You do not know how bad this was bugging me. I will have to search out the site here so I can write to the upper management so I can tell them how much help all of you are and what a great decision it was to host with TCH.
-
Thank you but I am still a little confuse, ok a lot confused. I know nothing about PHP and what little I know of javascript has faded in the past few years here is the menu text , I think I have an idea of what you mean but this might help you help me,( probably not good english). Thanks <script language="JavaScript"> <!-- function go(){ if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none") { location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value } } //--> </script> <script language="JavaScript"> <!-- document.write('<form name="selecter"><select name="select1" size=1>'); document.write('<option value=none>Select your destination...'); document.write('<option value=none>--------------------'); document.write('<option value="index.htm">Home'); document.write('<option value="st_michael__menu.htm" >Site Menu'); document.write('<option value="church_contacts.htm">Contact Information'); document.write('<option value="directions.htm">Directions and schedules'); document.write('<option value="clergy.htm">Our Clergy'); document.write('<option value="Hierarchs.htm">Our Hierarchs'); document.write('</select>'); document.write('<INPUT TYPE="button" VALUE="Go" onclick="go()">'); document.write('</form>'); //--> </script>
-
Let me describe my dilemma. I have a java script drop down menu on each of my pages in my site. I was loking for a way to make one menu and have if displayed on each page so that all I have to do is change one page and all will follow suite. A friend suggested an frame, which works great except that when some on follows a link in the drop down menu it opens in the iframe. So I need either a way to target the main window or another method to save on my administrative time
-
Thank you very much for the advice and the link to the other thread it was most helpful
-
Ok I'm usually pretty good at adapting JAVA scripts but I need to find them first. In the advanced guest book there is a Javascripted drop down menu that I need to add in the URL of my site so guests can return to my home page, where can I look to find that script so I can add in another selection
