FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[java scripts ] Multimedia





JANKOW
Universal background Music

Code:
<SCRIPT language="JavaScript">
 <!-- // Script MIDI playing. By Magic Maker 
 // Please Keep Information along with credits
 // And feel free to alter this script as long as credits remain. Mail me at maligui@mvillage.com
 // Skrypt zmodyfikowany przez Piotra Szczepanika - dodanie obslugi przegladarki Sylaba Nawigator
 // Email: piotrsz@exe.pl, http://www.pszczepanik.exe.pl
  if (navigator.appName == "Netscape") {
   document.write('<EMBED SRC="http://yoursite.com/multimed/yourmusic.mid" AUTOSTART=TRUE LOOP=FALSE WIDTH=145 HEIGHT=55></EMBED>') }
  else  if (navigator.appName == "Sylaba") {
   document.write('<EMBED SRC="http://yoursite.com/multimed/yourmusic.mid" AUTOSTART=TRUE LOOP=FALSE WIDTH=145 HEIGHT=55></EMBED>') }
  else { if (navigator.appName == "Microsoft Internet Explorer")
   document.write('<BGSOUND SRC="http://yoursite.com/multimed/yourmusic.mid" LOOP="1">')
 }
 //-->
 </SCRIPT>



Universal player AVI


Code:
 <SCRIPT language="JavaScript">
 <!--
 // Autor: Piotr Szczepanik (modyfikacja kodu Magic Maker <maligui@mvillage.com>)
 // Email: piotrsz@exe.pl, http://www.pszczepanik.exe.pl
 // Jesli chcesz rozprowadzac ten skrypt, to zachowaj powyzsze informacje.
 // Skrypt ten umozliwia wstawienie animacji do przegladarek: IExplorer, NNavigator i SNawigator.
 if (navigator.appName == "Netscape") {
   document.write('<EMBED SRC="http://yoursite.com/multimed/you.avi" AUTOSTART=TRUE LOOP=FALSE></EMBED>') }
  else if (navigator.appName == "Sylaba") {
   document.write('<EMBED SRC="http://yoursite.com/multimed/you.avi" AUTOSTART=TRUE LOOP=FALSE></EMBED>') }
  else { if (navigator.appName == "Microsoft Internet Explorer")
   document.write('<IMG DYNSRC="http://yoursite.com/multimed/you.avi" START="fileopen" LOOP="infinite">')
 }
 //-->
 </SCRIPT>



Still playing music

Code:
HEAD

<script language="Javascript">
<!--
function loadToolbar(){
window.open('muztlo.htm','MMB','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=150,height=50');
}
// -->
</script>

 BODY

<BODY onLoad="loadToolbar()">


Music on demand

Code:
<BGSOUND id="BGSOUND_ID" LOOP=1 SRC="jsilence.mid">
<EMBED NAME="Jazzball" SRC="../multimed/haendel.mid" LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>

<script language="JavaScript">
<!--
ver=parseInt(navigator.appVersion)
ie4=(ver>3  && navigator.appName!="Netscape")?1:0
ns4=(ver>3  && navigator.appName=="Netscape")?1:0
ns3=(ver==3 && navigator.appName=="Netscape")?1:0

function playSound() {
 if (ie4) document.all['BGSOUND_ID'].src='../multimed/yourmusic.mid';
 if ((ns4||ns3)
  && navigator.javaEnabled()
  && navigator.mimeTypes['audio/x-midi']
  && self.document.Jazzball.IsReady()
 )
 {
  self.document.Jazzball.play()
 }
}

function stopSound() {
 if (ie4) document.all['BGSOUND_ID'].src='yourmusic.mid';
 if ((ns4||ns3)
  && navigator.javaEnabled()
  && navigator.mimeTypes['audio/x-midi']
 )
 {
  self.document.Jazzball.stop()
 }
}
//-->
</script>

<form name=myform>
<input type=button value="Play" onClick="playSound()">
<input type=button value="Stop" onClick="stopSound()">
</form>



Previewer of Graphic arts

Code:
IN HEAD

<script>

/*Rollover effect on different image script-
By Website Abstraction (http://wsabstract.com)
Over 200+ free scripts here!
*/

function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
}
}
function warp(){
window.location=gotolink
}

</script>
<script language="JavaScript1.1">
var myimages=new Array()
var gotolink="#"

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("../grafik/yourgrafic.gif","../grafik/yourgrafic.gif","../grafik/yourgrafic.gif")
</script>

IN BODY

<p><a href="../grafik/yourgrafic.gif" onMouseover="changeimage(myimages[0],this.href)">YOUR GRAPHIC NAME</a> |
<a href="../grafik/yourgrafic.gif" onMouseover="changeimage(myimages[1],this.href)">YOUR GRAPHIC NAME</a> |
<a href="../grafik/yourgrafic.gif" onMouseover="changeimage(myimages[2],this.href)">YOUR GRAPHIC NAME</a></p>

<a href="javascript:warp()"><img src="../grafik/yourgrafic.gif" name="targetimage" border=0></a>

<script>

//myimages[0] would refer to "enter.gif", myimages[1] would refer to "pcq.gif" etc
preloadimages("../grafik/yourgrafic.gif","../grafik/yourgrafic.gif","../grafik/yourgrafic.gif")

</script>


Demonstration of slides show


Code:
 IN HEAD

<script>

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// =======================================
// set the following variables
// =======================================

// Set speed (milliseconds)
var speed = 3000

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '../grafik/your.gif'
Pic[1] = '../grafik/your.gif'
Pic[2] = '../grafik/your.gif'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   document.images.SlideShow.src = preLoad[j].src
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', speed)
}

</script>


Definition BODY

<body onload="runSlideShow()">

IN  BODY

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=80 width=114>
<img src="../grafik/your.gif" name='SlideShow' width=80 height=114></td>
</tr>
</table>
Rbv
I loved the last one...
Related topics
[ java scripts ] email service
[java scripts] System information
[java scripts] Text effect , img ....
Free Scripts Resources
the best site for script
What Happens When You Visit the Web Site ?
Java script
can someone give me some honest opinion about my site
Php ,Asp ,CGi ,Java Scripts
How can we make money through free hosting?????
what are the differents between script and language?
Web Page Maker
Where to find Java Scripts
how did you learn about html, php or other languages???
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.