السلام على من اتبع الهدى
بعد التحية الطيبة
الى كل من يعشق لغة الجافا سكريبت
محاولة دمج كودين فى كود
اسف جدا الموضوع نشرتة بالغلط فى قسم اخر على العموم
حاولت اغير اسم الدلة والابوبشن وحاولت اكثر من ساعتين فيها
ولكن لاجدوى ارجوا من عاشقى لغة الجافا سكربيت ان يتدخلو هل بالامكان
دمج الكودين فى كود واحد لكى يشتغل الفليم فى نفس الصفحة وليس صفحة اخرى
اليكم الكود الاول
وهو خاص بتشغيل الافلام فى المتصفح
</body>
<head>
</******>
<****** type="text/java******">
_uacct = "UA-911073-1";
urchinTracker();
</******>
<!-- DEBUT DU ****** -->
<****** LANGUAGE="Java******">
/*
****** EDITE SUR L'EDITEUR JAVA******
http://www.editeurjava******.com
URL du ****** : http://editeurjava******.com/******s...extes_1_80.php
*/
place = 0;
tempoLong = 100;
function EJSAnimEtat2()
{
texteTemp1 = texteAff.substring(0,place);
texteTemp2 = texteAff.substring(place,place+1);
texteTemp2 = texteTemp2.toUpperCase();
texteTemp3 = texteAff.substring(place+1,texteAff.length);
window.status = texteTemp1 + texteTemp2 + texteTemp3;
if (place>texteAff.length)
{
place=0;
tempoLong=1000;
}
if (place==0)
tempoLong=100;
place++;
tempoAnimEtat2 = setTimeout("EJSAnimEtat2()",tempoLong)
}
function EJSAnimEtat2Break()
{
window.status = "";
clearTimeout(tempoAnimEtat2);
}
window.onload = EJSAnimEtat2;
window.onunload = EJSAnimEtat2Break;
</******>
<!-- FIN DU ****** --></head>
<style>
<!--
<body style="font-family: Arabic Transparent; font-size: 12pt; text-align: center" background=Images/Untitled-3.gif">
.alt2 { background: #E9FCD7; color: #bf4a47; } .fieldset { margin-bottom: 6px; } .fieldset { font-size: 15px; } .fieldset p { font-size: 11px; } select { background: #fffef8; color: #bf4a47; font: 12pt ms sans serif,arial; } .button { background: #E9FCD7 url('sehaam/design/sasa.gif') repeat-x top left; color: #000000; font-style:normal; font-variant:normal; font-weight:normal; font-size:10pt; font-family:ms sans serif, arial }-->
</style>
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>مرئيات الموقع</title>
<!--Code generated by Cool Web Scrollbars from Harmony Hollow Software-->
<!--http://www.harmonyhollow.net-->
<STYLE type="text/css">
<!--
BODY {
scrollbar-face-color:#E6FCD2;
scrollbar-highlight-color:#477E12;
scrollbar-3dlight-color:#E6FCD2;
scrollbar-darkshadow-color:#E6FCD2;
scrollbar-shadow-color:#477E12;
scrollbar-arrow-color:#477E12;
scrollbar-track-color:#E6FCD2;
}
-->
</STYLE>
<!--End Cool Web Scrollbars code-->
<****** language="Java******">
<!--
function changeMute(){
Player.settings.mute = 'true';
mute.innerHTML='<a href="#" onClick="changeMute2();">مكتوم</a>';
}
function changeMute2(){
Player.settings.mute = 'false';
mute.innerHTML='<a href="#" onClick="changeMute();">كتم</a>';
}
function initiateStation(){
toPlay = ********.getElementById('thisStation')
toPlay = toPlay.options[toPlay.options.selectedIndex].value
newRadio = "";
newRadio += "<OBJECT ID='Player' height='330' width='400' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>"
newRadio += "<PARAM name='URL' value='" + toPlay + "' id='insert_1'>"
newRadio += "<PARAM name='uiMode' value='mini'>"
newRadio += "<PARAM name='mute' value='false'>"
newRadio += "<PARAM name='ShowControls' value='0'>"
newRadio += "<PARAM name='ShowStatusBar' value='0'>"
newRadio += "<PARAM name='ShowDisplay' value='0'>"
newRadio += "<EMBED type='application/x-mplayer2' "
newRadio += "pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/' "
newRadio += "SRC='" + toPlay + "' "
newRadio += "name='Player' "
newRadio += "width='350' "
newRadio += "height='300' "
newRadio += "AutoStart='true' "
newRadio += "showcontrols='0' "
newRadio += "showstatusbar='0' "
newRadio += "showdisplay='0' "
newRadio += "id='insert_2'>"
newRadio += "</EMBED>"
newRadio += "</OBJECT>"
********.getElementById('radio').innerHTML = newRadio
}
-->
</******>
</head>
<body>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<td class='alt2' valign='top'>
<fieldset class="fieldset">
<legend>قائمة مرئيات الموقع</legend>
<center>
<center>
<select class="button" id="thisStation" size="1" name="D1">
<option value="">قائمة مرئيات الموقع</option>
<optgroup label="">
<option value="">فليم 1</option>
<option value="E:\Movies&Fun\Movies\Arabic\3n\3n.wpl">فيلم 2</option>
<option value="">فليم 3</option>
</optgroup>
</select>
<input type='button' value='مشاهدة' class='button' onclick='initiateStation()' />
</center><br />
</center>
</fieldset>
<br/>
<fieldset class="fieldset">
<legend>ادوات تشغيل العرض</legend>
<center>
[العرض: <a href='#' onClick='java******:Player.uiMode = "mini";'>إظهار</a> |
<a href='#' onClick='java******:Player.uiMode = "none";'>إخفاء </a>]
[<a href='#' onClick='java******:Player.controls.play();'>تشغيل</a>]
[<a href='#' onClick='java******:Player.controls.stop();'>إيقاف</a>]
[<font id='mute'><a href='#' onClick='changeMute();'>كتم</a></font>]
<br />
[مستوى الصوت:
<a href='#' onClick='java******:Player.settings.volume= 20;'>منخفض</a> |
<a href='#' onClick='java******:Player.settings.volume= 50;'>متوسط</a> |
<a href='#' onClick='java******:Player.settings.volume= 100;'> عالى </a>]
</center><br />
</fieldset>
<p align="center">
<font size="6">
</font><td class='alt2' align='center' id='radio'>
<OBJECT ID='Player' height='330' width='400' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>
<PARAM name='URL' value='' id='insert_1'>
<PARAM name='uiMode' value='mini'>
<PARAM name='mute' value='0'>
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<EMBED type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
SRC=''
name='Player'
width='300'
height='250'
AutoStart='true'
showcontrols='0'
showstatusbar='0'
showdisplay='0'
id='insert_2'>
</EMBED>
</OBJECT>
</td>
</tr>
</table>
</body>
</html>واليكم الكود الثانى
وهو فتح قائمتان منسدلة متداخلاتين
<form name="dynamiccombo">
<select name="stage2" size="1" onChange="displaysub()">
<option value="#">This is a place Holder text </option>
<option value="#">This is a Place Holder text </option>
<option value="#">This is a Place Holder text </option>
<option value="#">This is a Place Holder text </option>
</select>
<input type="button" name="test" value="Go!"
onClick="gothere()">
</form>
<******>
<!--
//2-level combo box ******- by java******kit.com
//Visit Java****** Kit (http://java******kit.com) for ******
//Credit must stay intact for use
//STEP 1 of 2: DEFINE the main category links below
//EXTEND array as needed following the laid out structure
//BE sure to preserve the first line, as it's used to display main title
var category=new Array()
category[0]=new Option("SELECT A CATEGORY ", "") //THIS LINE RESERVED TO CONTAIN COMBO TITLE
category[1]=new Option("Webmaster sites", "combo1")
category[2]=new Option("News sites", "combo2")
category[3]=new Option("Entertainment", "combo3")
//STEP 2 of 2: DEFINE the sub category links below
//EXTEND array as needed following the laid out structure
//BE sure to preserve the LAST line, as it's used to display submain title
var combo1=new Array()
combo1[0]=new Option("Java****** Kit","http://java******kit.com")
combo1[1]=new Option("Dynamic Drive","http://www.dynamicdrive.com")
combo1[2]=new Option("Freewarejava.com","http://www.freewarejava.com")
combo1[3]=new Option("Free Web Templates","http://www.freewebtemplates.com")
combo1[4]=new Option("Web Monkey","http://www.webmonkey.com")
combo1[5]=new Option("BACK TO CATEGORIES","") //THIS LINE RESERVED TO CONTAIN COMBO SUBTITLE
var combo2=new Array()
combo2[0]=new Option("CNN","http://www.cnn.com")
combo2[1]=new Option("MSNBC","http://www.msnbc.com")
combo2[2]=new Option("BBC News","http://news.bbc.co.uk")
combo2[3]=new Option("ABC News","http://www.abcnews.com")
combo2[4]=new Option("BACK TO CATEGORIES","") //THIS LINE RESERVED TO CONTAIN COMBO SUBTITLE
var combo3=new Array()
combo3[0]=new Option("Hollywood.com","http://www.hollywood.com")
combo3[1]=new Option("MTV","http://www.mtv.com")
combo3[2]=new Option("ETOnline","http://etonline.com")
combo3[3]=new Option("BACK TO CATEGORIES","") //THIS LINE RESERVED TO CONTAIN COMBO SUBTITLE
var curlevel=1
var cacheobj=********.dynamiccombo.stage2
function populate(x){
for (m=cacheobj.options.length-1;m>0;m--)
cacheobj.options[m]=null
selectedarray=eval(x)
for (i=0;i<selectedarray.length;i++)
cacheobj.options=new Option(selectedarray.text,selectedarray.value)
cacheobj.options[0].selected=true
}
function displaysub(){
if (curlevel==1){
populate(cacheobj.options[cacheobj.selectedIndex].value)
curlevel=2
}
else
gothere()
}
function gothere(){
if (curlevel==2){
if (cacheobj.selectedIndex==cacheobj.options.length-1){
curlevel=1
populate(category)
}
else
location=cacheobj.options[cacheobj.selectedIndex].value
}
}
//SHOW categories by default
populate(category)
//-->حاولت اغير اسم الدلة والابوبشن وحاولت اكثر من ساعتين فيها
ولكن لاجدوى ارجوا من عاشقى لغة الجافا سكربيت ان يتدخلو هل بالامكان
دمج الكودين فى كود واحد لكى يشتغل الفليم فى نفس الصفحة وليس صفحة اخرى
وهذا هو نتاج عملى
</body>
<head>
</******>
<****** type="text/java******">
_uacct = "UA-911073-1";
urchinTracker();
</******>
<!-- DEBUT DU ****** -->
<****** LANGUAGE="Java******">
/*
****** EDITE SUR L'EDITEUR JAVA******
http://www.editeurjava******.com
URL du ****** : http://editeurjava******.com/******s/******s_textes_1_80.php
*/
place = 0;
tempoLong = 100;
function EJSAnimEtat2()
{
texteTemp1 = texteAff.substring(0,place);
texteTemp2 = texteAff.substring(place,place+1);
texteTemp2 = texteTemp2.toUpperCase();
texteTemp3 = texteAff.substring(place+1,texteAff.length);
window.status = texteTemp1 + texteTemp2 + texteTemp3;
if (place>texteAff.length)
{
place=0;
tempoLong=1000;
}
if (place==0)
tempoLong=100;
place++;
tempoAnimEtat2 = setTimeout("EJSAnimEtat2()",tempoLong)
}
function EJSAnimEtat2Break()
{
window.status = "";
clearTimeout(tempoAnimEtat2);
}
window.onload = EJSAnimEtat2;
window.onunload = EJSAnimEtat2Break;
</******>
<!-- FIN DU ****** --></head>
<style>
<!--
<body style="font-family: Arabic Transparent; font-size: 12pt; text-align: center" background=Images/Untitled-3.gif">
.alt2 { background: #E9FCD7; color: #bf4a47; } .fieldset { margin-bottom: 6px; } .fieldset { font-size: 15px; } .fieldset p { font-size: 11px; } select { background: #fffef8; color: #bf4a47; font: 12pt ms sans serif,arial; } .button { background: #E9FCD7 url('sehaam/design/sasa.gif') repeat-x top left; color: #000000; font-style:normal; font-variant:normal; font-weight:normal; font-size:10pt; font-family:ms sans serif, arial }-->
</style>
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>مرئيات الموقع</title>
<!--Code generated by Cool Web Scrollbars from Harmony Hollow Software-->
<!--http://www.harmonyhollow.net-->
<STYLE type="text/css">
<!--
BODY {
scrollbar-face-color:#E6FCD2;
scrollbar-highlight-color:#477E12;
scrollbar-3dlight-color:#E6FCD2;
scrollbar-darkshadow-color:#E6FCD2;
scrollbar-shadow-color:#477E12;
scrollbar-arrow-color:#477E12;
scrollbar-track-color:#E6FCD2;
}
-->
</STYLE>
<!--End Cool Web Scrollbars code-->
</head>
<body>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<td class='alt2' valign='top'>
<fieldset class="fieldset">
<legend>قائمة افلام الموقع</legend>
<center>
<center>
<form name="dynamiccombo">
<select name="stage2" size="1" onChange="displaysub()">
<option value="#">#</option>
<option value="#">#</option>
<option value="#">#</option>
<option value="#">#</option>
</select>
<input type="button" name="test" value="مشاهدة"onClick="gothere()">
<br/><br/>
<input type="button" name="test" value="رجوع للقائمة"onClick="java******:window.location.reload()">
</form>
<******>
<!--
var category=new Array()
category[0]=new Option("القائمة ", "") //THIS LINE RESERVED TO CONTAIN COMBO TITLE
category[1]=new Option("الافلام العربى", "combo1")
category[2]=new Option("الأفلام الاجنبية", "combo2")
category[3]=new Option("افلام الكرتون", "combo3")
var combo1=new Array()
combo1[0]=Option("اختر فيلم", "") //THIS LINE RESERVED TO CONTAIN COMBO TITLE
combo1[1]=Option("عن العشق والهوى","E:/Movies&Fun/Movies/Arabic/3n/3n.wpl")
combo1[2]=Option("جعلتنى مجرما","E:/Movies&Fun/Movies/Arabic/Ga3alatny.Mogreman/Ga3alatny.Mogreman.wpl")
combo1[3]=Option("كتكوت","E:/Movies&Fun/Movies/Arabic/Katkot/Katkot.wpl")
var combo2=new Array()
combo2[0]=Option("اختر فيلم", "") //THIS LINE RESERVED TO CONTAIN COMBO TITLE
combo2[1]=Option("01","01.wpl")
combo2[2]=Option("01","01.wpl")
combo2[3]=Option("01","01.wpl")
var combo3=new Array()
combo3[0]=Option("اختر فيلم", "") //THIS LINE RESERVED TO CONTAIN COMBO TITLE
combo3[1]=Option("01","01.wpl")
combo3[2]=Option("01","01.wpl")
var curlevel=1
var cacheobj=********.dynamiccombo.stage2
function populate(x){
for (m=cacheobj.options.length-1;m>0;m--)
cacheobj.options[m]=null
selectedarray=eval(x)
for (i=0;i<selectedarray.length;i++)
cacheobj.options=Option(selectedarray.text,selectedarray.value)
cacheobj.options[0].selected=true
}
function displaysub(){
if (curlevel==1){
populate(cacheobj.options[cacheobj.selectedIndex].value)
curlevel=2
}
else
gothere()
}
function gothere(){
if (curlevel==2){
if (cacheobj.selectedIndex==cacheobj.options.length-1){
curlevel=1
populate(category)
}
else
location=cacheobj.options[cacheobj.selectedIndex].value
}
}
function initiateStation(){
toPlay = ********.getElementById('dynamiccombo')
toPlay = toPlay.options[toPlay.options.combo].value
newRadio = "";
newRadio += "<OBJECT ID='Player' height='330' width='400' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>"
newRadio += "<PARAM name='URL' value='" + toPlay + "' id='insert_1'>"
newRadio += "<PARAM name='uiMode' value='mini'>"
newRadio += "<PARAM name='mute' value='false'>"
newRadio += "<PARAM name='ShowControls' value='0'>"
newRadio += "<PARAM name='ShowStatusBar' value='0'>"
newRadio += "<PARAM name='ShowDisplay' value='0'>"
newRadio += "<EMBED type='application/x-mplayer2' "
newRadio += "pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/' "
newRadio += "SRC='" + toPlay + "' "
newRadio += "name='Player' "
newRadio += "width='350' "
newRadio += "height='300' "
newRadio += "AutoStart='true' "
newRadio += "showcontrols='0' "
newRadio += "showstatusbar='0' "
newRadio += "showdisplay='0' "
newRadio += "id='insert_2'>"
newRadio += "</EMBED>"
newRadio += "</OBJECT>"
********.getElementById('radio').innerHTML = newRadio
}
function changeMute(){
Player.settings.mute = 'true';
mute.innerHTML='<a href="#" onClick="changeMute2();">مكتوم</a>';
}
function changeMute2(){
Player.settings.mute = 'false';
mute.innerHTML='<a href="#" onClick="changeMute();">كتم</a>';
}
//SHOW categories by default
populate(category)
-->
</******>
</center><br />
</center>
</fieldset>
<br/>
<fieldset class="fieldset">
<legend>ادوات تشغيل العرض</legend>
<center>
[العرض: <a href='#' onClick='java******:Player.uiMode = "mini";'>إظهار</a> |
<a href='#' onClick='java******:Player.uiMode = "none";'>إخفاء </a> |
<a href='#' onClick='java******:Player.controls.play();'>تشغيل</a> |
<a href='#' onClick='java******:Player.controls.stop();'>إيقاف</a> |
<font id='mute'><a href='#' onClick='changeMute();'>كتم</a></font>]
<br />
[مستوى الصوت:
<a href='#' onClick='java******:Player.settings.volume= 20;'>منخفض</a> |
<a href='#' onClick='java******:Player.settings.volume= 50;'>متوسط</a> |
<a href='#' onClick='java******:Player.settings.volume= 100;'>عالى</a>]
</center><br />
</fieldset>
<p align="center">
<font size="6"> </font>
<td class='alt2' align='center' id='radio'>
<OBJECT ID='Player' height='330' width='400' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>
<PARAM name='URL' value='' id='insert_1'>
<PARAM name='uiMode' value='mini'>
<PARAM name='mute' value='0'>
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<EMBED type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
SRC=''
name='Player'
width='300'
height='250'
AutoStart='true'
showcontrols='0'
showstatusbar='1'
showdisplay='0'
id='insert_2'>
</EMBED>
</OBJECT>
</td>
</tr>
</table>
</body>
</html>ارجو الفادة
لى افكار ايضا فى التصميم ولكن للاسف مع قلة العلم لدى لايوجد من ينفذ
والسلام ختام