Jump to content

Page Loading


TheUnknown

Recommended Posts

Could some one guide me in the correct direction

What im looking to do is have a image like this loading.gif pop up for a x amount of time after someone submits a search using the form below

Any ideas?

Thanks in advance

 

<FORM name="search" ACTION='search.php' METHOD='POST' target="result">
				<input TYPE='TEXT' NAME="text" id="text" class="search" /> 
					 <font face="verdana">Engine: </font><select name="engine">
								<option value="1">Release Pirate</option>
								<option value="2">Torrent Reactor</option>
								<option value="3">SeedPeer</option>
								<option value="4">Sumo Torrent</option>
								<option value="5">Mininova</option>
								<option value="6">BTJunkie</option>
								<option value="7">Bush Torrent</option>
								<option value="8">Fenopy</option>
								<option value="9">IsoHunt</option>
								<option value="10">myBitTorrent</option>
								<option value="11">The Pirate Bay</option>
								<option value="12">Torrent Box</option>
							</select> 
				<input TYPE='submit' NAME="submit" VALUE="SUBMIT" class="button" />
			</FORM>

Link to comment
Share on other sites

Like this?

<FORM id="frmSearch" name="search" ACTION='http://www.google.com' METHOD='POST' target="result" onsubmit="submit.value='Loading...';submit.disabled=true;loadimg.style.display='inline'">
				<input TYPE='TEXT' NAME="text" id="text" class="search" /> 
					 <font face="verdana">Engine: </font><select name="engine">
								<option value="1">Release Pirate</option>
								<option value="2">Torrent Reactor</option>
								<option value="3">SeedPeer</option>
								<option value="4">Sumo Torrent</option>
								<option value="5">Mininova</option>
								<option value="6">BTJunkie</option>
								<option value="7">Bush Torrent</option>
								<option value="8">Fenopy</option>
								<option value="9">IsoHunt</option>
								<option value="10">myBitTorrent</option>
								<option value="11">The Pirate Bay</option>
								<option value="12">Torrent Box</option>
							</select> 
				<input TYPE="submit" NAME="submit" VALUE="SUBMIT" class="button"/>
<img id="loadimg" src="http://www.torrentvalley.com/images/loading.gif" style="display:none">
			</FORM>

Link to comment
Share on other sites

Like this?

<script type="text/javascript">
function loading()
{
frmSearch.submit.value='Loading...';
frmSearch.submit.disabled=true;
frmSearch.loadimg.style.display='inline'
setTimeout("frmSearch.loadimg.style.display='none';", 3000);
}
</script>

<FORM id="frmSearch" name="search" ACTION='http://www.google.com' METHOD='POST' target="result" onsubmit="loading()">
				<input TYPE='TEXT' NAME="text" id="text" class="search" /> 
					 <font face="verdana">Engine: </font><select name="engine">
								<option value="1">Release Pirate</option>
								<option value="2">Torrent Reactor</option>
								<option value="3">SeedPeer</option>
								<option value="4">Sumo Torrent</option>
								<option value="5">Mininova</option>
								<option value="6">BTJunkie</option>
								<option value="7">Bush Torrent</option>
								<option value="8">Fenopy</option>
								<option value="9">IsoHunt</option>
								<option value="10">myBitTorrent</option>
								<option value="11">The Pirate Bay</option>
								<option value="12">Torrent Box</option>
							</select> 
				<input TYPE="submit" NAME="submit" VALUE="SUBMIT" class="button"/>
<img id="loadimg" src="http://www.torrentvalley.com/images/loading.gif" style="display:none">
			</FORM>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.