Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2013, 02:47:57 am

Login with username, password and session length
Members
Total Members: 10764
Latest: ozzie4x4
Stats
Total Posts: 32378
Total Topics: 5479
Online Today: 65
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 57
Total: 57
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Tagging for Onclick  (Read 715 times)
wizi_emre
Inline PM Customer
*****
Offline Offline

Posts: 4


View Profile
« on: May 26, 2012, 03:16:21 pm »




---->




how do I ?

I've tried. but I can not run

Code:
<script type="text/javascript">
function displayResult(browser)
{
document.getElementById("result").value=browser
}
</script>
<script type="text/javascript">
function divYap(){
var yeni = document.createElement("div");

yeni.innerHTML = document.getElementById("result").value

yeni.className = "ornekSinif";
return yeni;
}
function appendChild_ile_ekle() {
var div = document.getElementById("ornekDiv");
div.appendChild( divYap() );
}
</script>

<input type="radio" name="browser" onclick="displayResult(this.value)" value="Internet Explorer">Internet Explorer<br />
<input type="radio" name="browser" onclick="displayResult(this.value)" value="Firefox, ">Firefox<br />
<input type="radio" name="browser" onclick="displayResult(this.value)" value="Opera, ">Opera<br />
<input type="radio" name="browser" onclick="displayResult(this.value)" value="Google Chrome, ">Google Chrome<br />
<input type="radio" name="browser" onclick="displayResult(this.value)" value="Safari, ">Safari<br /><br />
<input  id="result" />

<input type="button" value="Tür Ekle" onClick="appendChild_ile_ekle()" />

<div  id="ornekDiv" style="padding:3px;">
</div>

Or...

Code:
<script type="text/javascript">
function displayResult(browser)
{
document.getElementById("result").value=browser
}
</script>
<input type="checkbox" name="browser" onclick="displayResult(this.value)" value="Internet Explorer">Internet Explorer<br />
<input type="checkbox" name="browser" onclick="displayResult(this.value)" value="Firefox, ">Firefox<br />
<input type="checkbox" name="browser" onclick="displayResult(this.value)" value="Opera, ">Opera<br />
<input type="checkbox" name="browser" onclick="displayResult(this.value)" value="Google Chrome, ">Google Chrome<br />
<input type="checkbox" name="browser" onclick="displayResult(this.value)" value="Safari, ">Safari<br /><br />
 <td width="28%"  class="windowbg2" align="right"><span class="gen"><b>', $txt['smftags_tagtoadd'], '</b></span></td>
 <td width="72%" class="windowbg2"><input type="text" id="result" name="tag" size="64" maxlength="100" /></td>
  </tr>
Logged
wizi_emre
Inline PM Customer
*****
Offline Offline

Posts: 4


View Profile
« Reply #1 on: May 28, 2012, 06:46:50 pm »

Help Please Sad
Logged
wizi_emre
Inline PM Customer
*****
Offline Offline

Posts: 4


View Profile
« Reply #2 on: May 31, 2012, 12:48:36 pm »



I managed to ^. ^
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 01:01:03 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:20:35 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.398 seconds with 19 queries.