الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف أعمل منتدى chat في موقعي؟

مغلق
بدأه حيران في 10 يونيو 2003 · 6 رد · 1,088 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

أخواني الأعزاء ، السلام عليكم ورحمة الله

عندي منتدى عام في موقعي ، وطلبوا مني الأعضاء أن أعمل لهم قسم للمحادثة المباشرة بين الأعضاء chat.

طبعا أنا بحثت عن سكربتات مجانية كثيرا ، وما وجدت بصراحة واحد فيه خير ! :(

يعني ، إما يطلع غير متوالم مع العربي ، بحيث لما أكتب في الشات يعطلع لا تيني .

أو يكون برنامج الشات كل شوي يعمل رفريش للصفحة حتى يظهر آخر الكتابات في التيكست بوكس ، فبالتالي ينزعجون الأعضاء.

نعم ، وجدت عدة برامج ولكنها كلها لازم أدفع :(

وبصراحة أنا وصلت إلى مرة متسعد اني أدفع وأشتري هالبرنامج ، ولكن أبي أدفع مره وحدة مو كل شهر ادفع لهم .

فيا ريت اللي عنده معلومة حول الموضوع، سكربتات أو برامج شات مجانية أخليها لموقعي ، أو اشتريها ، بس تكون أفضل البرامج .

يعني مثلا شوفوا هالموقع:

[WEB]http://www.zbitinc.com/product.asp?prodid=3[/WEB]

هذا طبعا بفلوس

بس المشكلة مو فاهم شنو يقول:

1Server License

2 Servers License (At 30% discount)

3 Servers License (For the price of two)

.......

مو فاهم شالفرق اللي بينهم

وهذا موقع فيه مواقع كثيرة لبرامج الشات الخاصه للمواقع:

[WEB]http://www.aspin.com/home/webapps/chat?pg=1&order=desc[/WEB]

طولت عليكم ;) بس يا ريت والله القه عندكم الحل .....والله مليت :'(

#2
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
 class Tekeya
{
	// gui
	static JFrame f=new JFrame("El-Tekeya : Sign In");
	boolean signUp=true;
	Container c;
	final Font fnt=new Font("Serif",1,16);
	private boolean run=true;
	JPanel p[]=new JPanel[30];
	JLabel l[]=new JLabel[30];
	JButton bt[]=new JButton[10];
	JTextField tf=new JTextField(10);
	JPasswordField pf=new JPasswordField(10);
	// net
	ServerSocket sers;
	Socket mnSoc;
	Socket mnSoc2;
	InputStream is;
	OutputStream os;
	final private String srvrIP="172.16.51.113";
	//final private String srvrIP="127.0.0.1";
	// ID & Password
	protected String ID;
	protected String Password;
	// for code
	boolean again=false;
	boolean userState=true;
	Tekeya()
	{
		//////////  instead of TekFrm
		/*f.addWindowListener(
			new WindowAdapter(){
				public void windowClosing(WindowEvent e)
				{
					closIt();
				}
			}
		);*/
		////////////////////////
		for(int x=0;x<30;x++)
		{
			p[x]=new JPanel();p[x].setFont(fnt);
			p[x].setBackground(SystemColor.control);
			l[x]=new JLabel();l[x].setFont(fnt);
		}
		for(int x=0;x<10;x++)
		{
			bt[x]=new JButton();
			bt[x].setFont(fnt);
		}
		System.out.println("starting sign in");
		JCheckBox cb=new JCheckBox("Invisible Mode");
		f.setLocation(800,10);
		f.setSize(420,430);
		f.show();
		f.setResizable(false);
		c=f.getContentPane();
		//////////////////// draw image in North panel  p[1] size 400*70
		p[1].setSize(new Dimension(410,76));
		c.add(p[1],"North");
		l[19]=new JLabel(new ImageIcon("c:/tekeya.gif"));
		p[1].add(l[19]);
		l[19].setBorder(BorderFactory.createCompoundBorder
		(BorderFactory.createMatteBorder(4,2,4,2,new Color(100,100,255)),
		BorderFactory.createEtchedBorder()));
		/////////////////////////// finish image
		c.add(p[0],"South");
		p[0].setBorder(BorderFactory.createEtchedBorder());
		p[0].add(bt[0]);bt[0].setText("  Ok  ");bt[0].setMnemonic('o');
		p[0].add(bt[1]);bt[1].setText("Cancel");bt[1].setMnemonic('C');
		p[1].setBorder(BorderFactory.createEtchedBorder());
		c.add(p[2]);
		p[2].setBorder(BorderFactory.createCompoundBorder
		(BorderFactory.createMatteBorder(10,10,10,10,new Color(100,100,255)),
		BorderFactory.createRaisedBevelBorder()));
		p[2].setLayout(new GridLayout(7,1));
		for(int x=3;x<10;x++)
		{
			p[2].add(p[x]);
		}
		l[0].setText("   User  ID");
		l[1].setText(" Password");
		p[4].add(l[0]);p[4].add(tf);
		p[5].add(l[1]);p[5].add(pf);
		cb.setFont(fnt.deriveFont(3));
		p[6].add(cb);
		cb.addChangeListener(
			new ChangeListener(){
				public void	stateChanged(ChangeEvent e){
					userState=!userState;
					System.out.println("State "+userState);
				}
			}
		);
		p[7].add(bt[2]);bt[2].setText("I Forgot My Password!");
		bt[2].setMnemonic('F');
		bt[2].setFont(fnt.deriveFont(14.0f));
		p[8].add(bt[3]);bt[3].setText("     I am a new User     ");
		bt[3].setMnemonic('n');
		bt[3].setFont(fnt.deriveFont(14.0f));
		pf.addKeyListener(
			new KeyAdapter(){
				public void keyReleased(KeyEvent e)
				{
					if(e.getKeyCode()==10)
					{
						if(checkID())startTek(is,os);
					}
				}
			}
		);
		bt[0].addActionListener(
			new ActionListener()
			{
				public void actionPerformed(ActionEvent e)
				{
					if(checkID())startTek(is,os);
				}
			}
		);
		bt[1].addActionListener(
			new ActionListener()
			{
				public void actionPerformed(ActionEvent e)
				{
					closIt();
				}
			}
		);
		bt[2].addActionListener(
			new ActionListener()
			{
				public void actionPerformed(ActionEvent e)
				{
					forgot();
				}
			}
		);
		bt[3].addActionListener(
			new ActionListener()
			{
				public void actionPerformed(ActionEvent e)
				{
					newUser();
				}
			}
		);
	f.setLocation(190,70);
	f.show();
	}
	/////  finished here and user signed in
	void startTek(InputStream is,OutputStream os)
	{
		String s="";
		pf.setText("");
		tf.setText("");
		f.dispose();
		try{
			System.out.println("ok .. start now");
			if(userState) s="online";
			else s="offline";
			Thread.sleep(200);
			os.write(str(s));
			os.flush();
			System.out.println("User State sent as "+s);
			System.out.println(""+mnSoc);
			System.out.println(""+ID);
			System.out.println(""+is);
			System.out.println(""+os);
			Done log=new Done(mnSoc,ID,is,os);

		}
		catch(Exception ex){
			System.out.println(""+ex);
			showMsg("     there is no Internet Connection on this computer		nplease connect to Internet first or check your cables n"
			,"No Connection found");
			try{
				mnSoc.close();
			}
			catch(Exception e2){}
			return;
		}
	}
	////////////////  create the connection first
	void getMySoc()
	{
		try{
			sers=new ServerSocket(0);
			int zzz=sers.getLocalPort();
			System.out.println("ServerSocket created on port "+zzz);
			mnSoc2=new Socket(srvrIP,9000);
			System.out.println("connected on the original socket");
			os=mnSoc2.getOutputStream();
			InputStream os2=mnSoc2.getInputStream();
			System.out.println("connected to the new server");
			String h=""+zzz;
			os.write(str(h));
			Thread.sleep(200);
			mnSoc2.close();
			mnSoc=sers.accept();
			System.out.println("Port sent "+h);
			//is=null;
			//oi=null;
			//Thread.sleep(1000);
			//mnSoc=new Socket(srvrIP,port);
			is=mnSoc.getInputStream();
			os=mnSoc.getOutputStream();
			//oo=new ObjectOutputStream(os);
			//oi=new ObjectInputStream(is);
			System.out.println("got everything");
			return;
		}
		catch(Exception e){
			showMsg("     there is no Internet Connection on this computer		nplease connect to Internet first or check your cables n"
			,"No Connection found");
			try{
				mnSoc.close();
			}
			catch(Exception e2){}
			again=true;
			return;
		}
	}
	////////////////
	////////////////
	////////////////
	////////////////
	/// forgot password
	void forgot()
	{
		String ID="";
		boolean sss=true;
		try{
			try{
				while(sss){
					ID=JOptionPane.showInputDialog(f,"Please enter Your ID","Help In Password",-1);
					if(ID.equals(""))continue;
					else sss=!sss;
				}
			}
			catch(Exception d){return;}
			getMySoc();
			os.write(str("forgot"));
			//oo.flush();
			Thread.sleep(350);
			os.write(str(ID));
			os.flush();
			System.out.println("sent "+ID);
			byte az[]=new byte[80];
			is.read(az);
			String f1=new String(az).trim();
			if (f1.equals("id_not_found")){showMsg("The ID you have entered was not found ","Wrong ID");
					mnSoc.close();}
			byte az2[]=new byte[80];
			is.read(az2);
			String f2=new String(az2).trim();
			byte az3[]=new byte[80];
			is.read(az3);
			String f3=new String(az3).trim();
			for(int x=0;x<3;x++){
				String f4=JOptionPane.showInputDialog(f,f1,"Your Secret Question",-1);
				if(f4.equals(f2)){showMsg(f3,"Your Password");mnSoc.close();return;}
				else {
					showMsg("Your answer doesn't match nthe recorded answer for your question nplease try again","Wrong Answer");
					mnSoc.close();
				}
			}
			return;
		}
		catch(Exception e)
		{
			showMsg("     there is no Internet Connection on this computer		nplease connect to Internet first or check your cables n"
			,"No Connection found");
			try{
				mnSoc.close();
			}
			catch(Exception e2){}
			again=true;
			return;
		}
	}
	/// new user
	void newUser()
	{
		SignUp su=new SignUp();
	}
	/// closing
	void closIt()
	{
		f.setTitle("Bye");
		for(int x=400;x>0;x-=10)
		{
			f.setSize(x,x);
			try
				{
					Thread.sleep(50);
				}
			catch(Exception ex){};
		}
		run=false;
		f.dispose();
		System.exit(1);
	}
	/// main Frame
	final class SignUp extends JFrame
	{
		boolean noNet=false;
		JComboBox cb1;
		JComboBox cb2;
		String tryID;
		String tryPass;
		String tryMail;
		String tryQ;
		String tryA;
		String tryComment;
		String tryCountry;
		String tryGender;
		String tryPhone;
		JTextField tx1=new JTextField(15);
		JTextField tx2=new JTextField(15);
		JTextField tx3=new JTextField(15);
		JTextField tx4=new JTextField(15);
		JTextField tx5=new JTextField(15);
		JLabel Lb1=new JLabel("ID");
		JPasswordField ps1=new JPasswordField(10);
		JPasswordField ps2=new JPasswordField(10);
		JLabel Lb2=new JLabel("Password");
		JLabel Lb3=new JLabel("Repeat");
		JLabel Lb4=new JLabel("Email");
		JLabel Lb5=new JLabel("Country");
		JLabel Lb51=new JLabel("Secret Question");
		JLabel Lb52=new JLabel("Secret Answer");
		JLabel Lb6=new JLabel("Gender");
		JLabel Lb7=new JLabel("Phone no.");
		JLabel Lb8=new JLabel("Comment");
		JTextField ab1=new JTextField();
		Object cntry[]={"Albania","Algeria","Argentina","Armenia","Australia","Austria","Bahrain","Bangladesh","Belgium","Bolivia","Bosnia","Brazil",
		"Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Chad","Chile","China","Colombia","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech","Denmark",
		"Djibouti","Dominica","Ecuador","Egypt","El Salvador","Estonia","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","greece","Haiti","Hong Kong","Hungary","Iceland",
		"India","Indonesia","Iran","Iraq","Ireland","Italy","Jamaica","Japan","Jordan","Kenya","Korea (N)","Korea (S)","Kuwait","Latvia","Lebanon","Liberia","Libya","Lithuania",
		"Madagascar","Malawi","Malaysia","Mali","Malta","Morocco","Oman","Qatar","Saudi Arabia","Sudan","Tunisia","UAE (Emirates)","Yemen","Other Countries"};
		Object gndr[]={"Male","Female","Hide my Gender"};
		JTextArea text=new JTextArea();
		Container c;
		Graphics g;
		int cs=0;
		String w[]=new String[10];
		String showthis="";
		SignUp()
		{
			super("Welcome to El-Tekeya Chat System");
			f.hide();
			getAll();
			addWindowListener(
				new WindowAdapter(){
					public void windowClosing(WindowEvent e)
					{
						clos();
					}
				}
			);
			setBounds(150,100,500,400);
			setResizable(false);
			show();
			p[15].setPreferredSize(new Dimension(410,76));
			p[15].setLayout(new BorderLayout());
			l[18]=new JLabel(new ImageIcon("c:/tekeya.gif"));
			l[18].setBorder(BorderFactory.createCompoundBorder
			(BorderFactory.createMatteBorder(4,2,4,2,new Color(100,100,255)),
			BorderFactory.createEtchedBorder()));
			p[15].add(l[18]);
			c=getContentPane();
			c.add(p[15],"North");
			c.add(p[11],"South");
			c.add(p[16]);
			p[16].setBorder(BorderFactory.createEtchedBorder());
			p[16].setLayout(new BorderLayout());
			p[16].add(text);
			p[16].add(p[17],"South");
			p[17].setLayout(new BorderLayout());
			p[17].setPreferredSize(new Dimension(500,60));
			setFont(fnt);
			p[11].setPreferredSize(new Dimension(500,40));
			p[11].setBorder(BorderFactory.createEtchedBorder());
			g=getGraphics();
			bt[4]=new JButton(" < Back ");
			bt[4].setMnemonic('B');
			bt[4].setEnabled(false);
			bt[5]=new JButton(" Next > ");
			bt[5].setMnemonic('N');
			bt[6]=new JButton(" Cancel ");
			bt[6].setMnemonic('C');
			bt[6].addActionListener(
				new ActionListener()
				{
					public void actionPerformed(ActionEvent e)
					{
						clos();
					}
				}
			);
			p[11].setLayout(new GridLayout(1,5));
			p[11].add(p[12]);
			p[11].add(p[13]);
			p[11].add(bt[4]);
			p[11].add(bt[5]);
			p[11].add(p[14]);
			p[11].add(bt[6]);
			text.setFont(fnt);
			text.setBackground(SystemColor.control);
			p[16].setBackground(SystemColor.control);
			p[17].setBackground(SystemColor.control);
			text.setText(w[0]);
			text.setEditable(false);
			cb1=new JComboBox(cntry);
			cb2=new JComboBox(gndr);
			// prepare cases
			p[21].add(Lb1);p[21].add(tx1);
			p[22].add(Lb2);p[22].add(ps1);
			p[22].add(Lb3);p[22].add(ps2);
			p[23].add(Lb4);p[23].add(tx2);
			p[24].add(Lb5);p[24].add(cb1);
			p[25].add(Lb51);p[25].add(tx4);
			p[26].add(Lb52);p[26].add(tx5);
			p[27].add(Lb6);p[27].add(cb2);
			p[28].add(Lb7);p[28].add(tx3);
			p[29].add(Lb8);p[29].add(ab1);
			ab1.setPreferredSize(new Dimension(300,50));
			bt[5].requestFocus();
			show();
			// finish cases
			bt[4].addActionListener(
				new ActionListener()
				{
					public void actionPerformed(ActionEvent e)
					{
						if(cs==1)bt[4].setEnabled(false);
						if(cs==9)bt[5].setText(" Next > ");
						cs--;
						text.setText(w[cs]);
						p[17].removeAll();
						p[17].add(p[20+cs],"Center");
						showit();
					}
				}
			);
			bt[5].addActionListener(
				new ActionListener()
				{
					public void actionPerformed(ActionEvent e)
					{
						nextpress();
						bt[5].requestFocus();
					}
				}
			);
			tx1.addKeyListener(
				new KeyAdapter(){
					public void keyReleased(KeyEvent e)
					{
						if(e.getKeyCode()==10)nextpress();
					}
				}
			);
			ps2.addKeyListener(
				new KeyAdapter(){
					public void keyReleased(KeyEvent e)
					{
						if(e.getKeyCode()==10)nextpress();
					}
				}
			);
			tx2.addKeyListener(
				new KeyAdapter(){
					public void keyReleased(KeyEvent e)
					{
						if(e.getKeyCode()==10)nextpress();
					}
				}
			);
			tx3.addKeyListener(
				new KeyAdapter(){
					public void keyReleased(KeyEvent e)
					{
						if(e.getKeyCode()==10)nextpress();
					}
				}
			);
		}
		void nextpress()
		{
			if(cs==8)bt[5].setText(" Finish ");
			if(cs==0)bt[4].setEnabled(true);
			cs++;
			boolean go=getInfo(cs);
			if(cs==10){
				if (go)clos();
				else
				{
					showMsg(showthis,"ID already taken");
					cs=1;
				}
			}
			else if(go)showit();else {
				showMsg(showthis,"Error in Your data");
				cs--;
			}
			if (cs<10)text.setText(w[cs]);
			if (cs<10)p[17].removeAll();
			if (cs<10)p[17].add(p[20+cs],"Center");
			showit();
		}
		boolean noSigns(String q)
		{
			for (int v=0; v			{
				if((q.substring(v,v+1)).equals("|"))return true;
			}
			return false;
		}
		boolean getInfo(int c)
		{
			if (c==2)
			{
				tryID=tx1.getText().trim();
				if((tryID.length()<4)||(tryID.length()>30)){
					showthis="Your ID can't be less than 4 characters !!nor more than 30 characters";
					return false;
				}
				else if (noSigns(tryID)){showthis="Please Don't use this symbol in your ID (|)";
					return false;}
					else return true;
			}
			if (c==3)
			{
				tryPass=String.valueOf(ps1.getPassword()).trim();
				if(!(tryPass.equals(String.valueOf(ps2.getPassword()).trim())))
				{
					showthis="You entered two different passwords !!";
					return false;
				}
				else if(!(tryPass.length()>6))
				{
					showthis="Your password must be over 6 characters or more !!";
					return false;
				}
				return true;
			}
			if (c==4)
			{
				tryMail=tx2.getText().trim();
				return true;
			}
			if (c==5)
			{
				tryCountry=(String)(cb1.getSelectedItem());
				return true;
			}
			if (c==6)
			{
				tryQ=tx4.getText().trim();
				if((tryQ.length()<6)||(tryQ.length()>30)){
					showthis="Your Secret Question must be at least 6 characters !!";
					return false;
				}
				return true;
			}
			if (c==7)
			{
				tryA=tx5.getText().trim();
				if((tryA.length()<4)||(tryQ.length()>30)){
					showthis="Your Secret Answer must be at least 4 characters !!";
					return false;
				}
				return true;
			}
			if (c==8)
			{
				tryGender=(String)(cb2.getSelectedItem());
				return true;
			}
			if (c==9)
			{
				tryPhone=tx3.getText().trim();
				return true;
			}
			if (c==10)
			{
				tryComment=ab1.getText();
				if(!checkNew())
				{
					if(noNet){
						noNet=false;
						return false;
					}
					else {
						showthis="The ID you selected is already taken";
						return false;
					}
				}
				else{
					showMsg("You have successfully created your account","Congratulations");
					return true;
				}

			}
			return true;
		}
		//////////////////////// check The new ID
		boolean checkNew()
		{
			try{
				getMySoc();
				Thread.sleep(100);
				os.write(str("newID"));
				os.flush();
				Thread.sleep(250);
				os.write(str(tryID));
				os.flush();
				byte az7[]=new byte[80];
				is.read(az7);
				String f1=new String(az7).trim();
				if(f1.equals("ok")){
					Thread.sleep(50);
					os.write(str(tryPass));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryMail));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryCountry));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryQ));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryA));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryGender));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryPhone));
					os.flush();
					Thread.sleep(50);
					os.write(str(tryComment));
					os.flush();
					return true;
				}
				else return false;
			}
			catch(Exception ex){
				noNet=true;
				showMsg("     there is no Internet Connection on this computer		nplease connect to Internet first or check your cables n"
				,"No Connection found");
				try{
					mnSoc.close();
					return false;
				}
				catch(Exception ex2){
					return false;
				}
			}
		}
		void clos()
		{
			cs=0;
			f.show();
			try{
				mnSoc.close();
			}
			catch(Exception ex){}
			p[17].removeAll();
			p[16].removeAll();
			p[11].removeAll();
			for(int t=21;t<30;t++)p[t].removeAll();
			dispose();
		}
		void showit()
		{
			repaint();
		}
		void getAll()
		{
			w[0]="nn                                 Welcome To EL-Tekeya Wizard n"+
				 "nn        This wizard will help you to create your account in EL-Tekeya "+
				 "nn      please provide your information when required and the press Next";
			w[1]="nn      Firstly ,, you have to enter your desired ID which well refer to you";
			w[2]="nn      Now type your passward, you have to repeat it to make sure you "+
				 "nn      have correctly entered it ";
			w[3]="nn      if you have an email ,, please type if you want to recieve emails from"+
				 "nn      other users,, if not, press Next ";
			w[4]="nn      please select Your country from the list  nn";
			w[5]="nn      Now you should provide as with a secret question which will be "+
				 "nn      shown to you when you forget your password ";
			w[6]="nn      .. And now, your answer to that question should be : ";
			w[7]="nn      please select Your gender ..... nn";
			w[8]="nn      do you have a phone number ? if not press Next";
			w[9]="nn      would you like to add a comment about yourself ,, if not press Finish";
		}
	}
	boolean checkID()
	{
		String checked="";
		ID=tf.getText().trim();
		Password=String.valueOf(pf.getPassword()).trim();
		try
		{
			getMySoc();
			System.out.println("finished getMySoc");
			os.write(str("check"));
			os.flush();
			Thread.sleep(1000);
			System.out.println("USER ID SENT");
			os.write(str(ID));
			os.flush();
			Thread.sleep(150);
			System.out.println("USER PASS SENT");
			os.write(str(Password));
			//oo.flush();
			Thread.sleep(200);
			byte as12[]=new byte[80];
			is.read(as12);
			checked=new String(as12).trim();
			if(checked.equals("online"))
			{showMsg("the ID you entered is Already Online"
			,"User is already Online");
			mnSoc.close();
			again=true;
			return false;}
			else if(checked.equals("wrong"))
			{showMsg("Wrong Password .. please try again n and check the CAPS button"
			,"Wrong Password");
			mnSoc.close();
			again=true;
			return false;}
			else if(checked.equals("never"))
			{showMsg("the ID you entered wasn't found in DataBase"
			,"Wrong ID");
			mnSoc.close();
			again=true;
			return false;}
			///////////////////////
			return true;
		}
		catch(Exception e)
		{
			System.out.println(""+e);
			showMsg("     there is no Internet Connection on this computer		nplease connect to Internet first or check your cables n"
			,"No Connection found");
			try{
				mnSoc.close();
			}
			catch(Exception e2){}
			again=true;
			return false;
		}
	}
	void showMsg(String msg,String title)
	{
		JOptionPane.showMessageDialog(f,msg,title,-1);
	}
	///// main  ////
	public static void main(String p[])
	{
		//Splash s=new Splash();
		Tekeya tek=new Tekeya();
	}
	public byte[] str(String s)
	{
		byte g[]=new byte[80];
		int l=s.length();
		for(int z=0;z		{
			g[z]=(byte)s.charAt(z);
		}
		return g;
	}
}
class Splash
{
	Splash()
	{
		JWindow w=new JWindow();
		w.setBounds(190,135,420,220);
		w.getContentPane().setLayout(new BorderLayout());
		JLabel l=new JLabel(new ImageIcon("c:/splash.gif"));
		l.setBorder(BorderFactory.createCompoundBorder
		(BorderFactory.createMatteBorder(10,10,10,10,new Color(100,100,100)),
		BorderFactory.createEtchedBorder()));
		w.getContentPane().add(l);
		w.show();
		try{
			Thread.sleep(13000);
		}
		catch(Exception e){}
		w.dispose();
	}
}

ارجوا ان ذلك يفيدك

عبدالله

#3

اخي العزيز عبد الله ما هذا الذي و ضعته

اخي حيران للاسف انت في القسم الخطا انا يمكن ان اساعدك و اعطيك برنامج شات رائع و لكن على JSP و لااظن ان استضافتك تدعم هذه اللغة بل تدعم ASP لذا اذهب الى هناك او سوف اقوم انا بنقلها الى هناك و سوف تجد المساعدة بالتاكيد

اهلا بك معنا

Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why

#4

هذا االكود يمثل برنامج شات ممتاز

بالاضافة انه يستطيع نقل الصورة

وايه ASP لا تفيد فى اى شيء لو انت تعمل على نظام تشغيل غير الويندز

لا حول ولا قوة الا بالله

اخى نحن لدينا الجافا التى تفعل اى شيء

وشكرا

عبدالله

#5

السلام عليكم ورحمة الله وبركاته

أولا أشكرك أخي الكريم عبد الله وما قصر عزيزي في مساعدتي

وكذلك أشكر الكريم المشرف جافا مان ، الله يعطيك العافية وعساك على القوة.

ولكن سؤالي ، هل هذا الكود أخي الفاضل عبد الله ينفع للأي اس بي؟

أنا المنتدى عندي يعمل على الـ asp

والصفحات التي انشأها وأستخدما كلها asp

فهل ينقع هذا الكود بارك الله فيك؟

وأعتذر منكم أخي الكريم جافا مان اني لم أعرف جيدا أين أضع موضوع وسؤالي

بارك الله تعالى فيكم جميعا

أخوكم الصغير: حيران

#6

اخى العزيز بيئة asp او jsp كلها تعمل فى html

ولدى الجافا applet من خلالها اضيف كود جافا كامل فى تاج الابلت

ارجوا ان اكون قد وضحت شيء

عبدالله

#7

I have a methode by NotePad but you must change the extention from txt To cgi also I have the method for the e-mail and Games and CHAT

To receive the program please try to contact me on : mair2003@liveislam.com

(f)

هذا الموضوع مغلق.

مواضيع مشابهة