Jump to content
php.lv forumi
Sign in to follow this  
ziedinjsh

onSubmit=\"document.login.login.value=''

Recommended Posts

echo "<form method='post' action='".$_SERVER['PHP_SELF']."' name='login' onSubmit=\"document.login.login.value='White..'\">";

viss ir ok, bet kā varētu dabūt tā lai White... vietā ir loader.gif bilde?? value='<img src='misc/loader.gif'>' :D tā neiet

Share this post


Link to post
Share on other sites

ieliec html

<div id="load-img"></div>

izsauc js

document.getElementById("load-img").innerHTML = '<img src="misc/loader.gif" alt="" />';

Share this post


Link to post
Share on other sites

es sapratu šādi

echo "<form method='post' action='".$_SERVER['PHP_SELF']."' name='login' onSubmit=\"document.login.login.value='<div id='load-img'></div>'\">";

kur man ir jāizsauc JS??

Edited by ziedinjsh

Share this post


Link to post
Share on other sites

<form method='post' action='".$_SERVER['PHP_SELF']."' name='addmp3' enctype='multipart/form-data' onSubmit=\"document.getElementById('upload').innerHTML ='<img src='misc/sloader.gif'>'\"><div id='upload'></div>

 

nestrādā.. nekas nenotiek.. sloader.gif bilde neparādās nekur!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...