Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 05:25:31 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 54
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 49
Total: 50

Author Topic: Javascript Buttons  (Read 10126 times)

0 Members and 1 Guest are viewing this topic.

gerrymo

  • Guest
Javascript Buttons
« on: March 13, 2006, 11:27:59 AM »
The first is a back button. This will take you back to the page you came from (any page, any site). It uses you browser history to see what your previous page was.

Code: [Select]
<FORM>
<INPUT type="button" value="Click here to go back" onClick="history.back()">
</FORM>

Just change value= to your wording

==========================================================

This one can be used to visit any page (change the url to suit you).

Code: [Select]
<FORM>
<INPUT type="button" value="Click Here" name="button6" onClick="window.location='index.php?cat=138'">
</FORM>

Just alter value= and window.location= to suit your needs.

They can be used in blocks an aritcles.
« Last Edit: March 13, 2006, 03:02:00 PM by IchBinâ„¢ »

crip

  • Guest
Re: Java Buttons
« Reply #1 on: March 13, 2006, 11:31:52 AM »
this one is handy..ty gerrymo ..

gerrymo

  • Guest
Re: Java Buttons
« Reply #2 on: March 13, 2006, 12:02:10 PM »
Knowing your sense of humour Crip, try one of the back buttons, but add a negative number into the brackets like history.back(-12)

That will send the person back 12 pages, even if it is off your own site. Not handy for that much, but good for a wind up.

crip

  • Guest
Re: Java Buttons
« Reply #3 on: March 13, 2006, 12:09:02 PM »
when you say java do you mean javascript or just java back button applet?

gerrymo

  • Guest
Re: Java Buttons
« Reply #4 on: March 13, 2006, 12:19:07 PM »
Javascript.

crip

  • Guest
Re: Java Buttons
« Reply #5 on: March 13, 2006, 12:22:42 PM »
ok..cuz I jut don't like java Applets much..i'll tryer out. 8)

oneway

  • Guest
Re: Javascript Buttons
« Reply #6 on: July 24, 2006, 07:49:07 AM »
The first is a back button. This will take you back to the page you came from (any page, any site). It uses you browser history to see what your previous page was.

Code: [Select]
<FORM>
<INPUT type="button" value="Click here to go back" onClick="history.back()">
</FORM>

Just change value= to your wording

==========================================================

This one can be used to visit any page (change the url to suit you).

Code: [Select]
<FORM>
<INPUT type="button" value="Click Here" name="button6" onClick="window.location='index.php?cat=138'">
</FORM>

Just alter value= and window.location= to suit your needs.

They can be used in blocks an aritcles.

An interesting snippet. Just one thing though, value= doesn't change the button when I do it. It always says "Click here" no matter what text I put in for 'value'.

Muziek4um

  • Guest
Re: Javascript Buttons
« Reply #7 on: August 09, 2006, 05:29:15 AM »
ANy idea what i'm doing wrong in de code below?
It should open a flashplayer in a popup screen:

Code: [Select]
<a href="JavaScript:popupwin2('http://www.ongekendtalent.nl/MP3Player/MP3Player2.asp?berichtID=98820&clubID=10785', 'Player', 290, 66);" onmouseover="javascript:swapimage('clubmp3datum98820','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" onmouseout="javascript:swapimage('clubmp3datum98820','http://www.ongekendtalent.nl/_img/icoonmp31.gif')" onClick="javascript:swapimage('clubmp3datum98820','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" class="mp3"><img src="http://www.ongekendtalent.nl/_img/icoonmp31.gif" width="20" height="13" alt="" border="0" name="clubmp3datum98820" align="absmiddle" />Bamboo</a>
<br><a href="JavaScript:popupwin2('http://www.ongekendtalent.nl/MP3Player/MP3Player2.asp?berichtID=98808&clubID=10785', 'Player', 290, 66);" onmouseover="javascript:swapimage('clubmp3datum98808','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" onmouseout="javascript:swapimage('clubmp3datum98808','http://www.ongekendtalent.nl/_img/icoonmp31.gif')" onClick="javascript:swapimage('clubmp3datum98808','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" class="mp3"><img src="http://www.ongekendtalent.nl/_img/icoonmp31.gif" width="20" height="13" alt="" border="0" name="clubmp3datum98808" align="absmiddle" />Searchin</a>
<br><a href="JavaScript:popupwin2('http://www.ongekendtalent.nl/MP3Player/MP3Player2.asp?berichtID=98807&clubID=10785', 'Player', 290, 66);" onmouseover="javascript:swapimage('clubmp3datum98807','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" onmouseout="javascript:swapimage('clubmp3datum98807','http://www.ongekendtalent.nl/_img/icoonmp31.gif')" onClick="javascript:swapimage('clubmp3datum98807','http://www.ongekendtalent.nl/_img/icoonmp32.gif')" class="mp3"><img src="http://www.ongekendtalent.nl/_img/icoonmp31.gif" width="20" height="13" alt="" border="0" name="clubmp3datum98807" align="absmiddle" />Angel Eyes</a>
<br><a href="http://www.ongekendtalent.nl/clubs/clubstek/clubstek.asp?clubID=10785&prikbordID=78196&stem=poll" title="Powered By ongekendtalent.nl" target="_blank"><font color="#0F0F0F" size="1"><i>Powered by OngekendTalent.nl</i></font></a>

Muziek4um

  • Guest
Re: Javascript Buttons
« Reply #8 on: August 26, 2006, 04:24:13 AM »
Already got it.  :laugh:
Was a matter of putting this at the top of the script.

Code: [Select]
<script language="javascript" src="http://www.ongekendtalent.nl/_js/raamwerk.js"></script>
 :2funny: :up:

DJRONY

  • Guest
Re: Javascript Buttons
« Reply #9 on: July 22, 2009, 05:30:15 AM »
so how to make colorful and bigger buttons in JavaScript? I want to use some in my site
« Last Edit: July 22, 2009, 11:08:21 AM by IchBinâ„¢ »