Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Textarea gumbići

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
IM



Joined: 19 Jun 2004
Posts: 42
Location: Zagreb, Hrvatska

PostPosted: 05.07.2004 11:41    Post subject: Textarea gumbići Add user to your forum ignore list Reply with quote

Zanima me kako napraviti buttone koji će ubacivati text u neko textarea polje. Npr. kao kad radim novu temu ili odgovaram na post, onda postoje oni gumbi B, Code, List,...itd.
Very Happy
Back to top
View user's profile Send private message
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 05.07.2004 11:52    Post subject: Re: Textarea gumbići Add user to your forum ignore list Reply with quote

IM wrote:
Zanima me kako napraviti buttone koji će ubacivati text u neko textarea polje. Npr. kao kad radim novu temu ili odgovaram na post, onda postoje oni gumbi B, Code, List,...itd.
Very Happy



javascript.. pogledaj source stranice..
Back to top
View user's profile Send private message MSN Messenger
IM



Joined: 19 Jun 2004
Posts: 42
Location: Zagreb, Hrvatska

PostPosted: 05.07.2004 12:03    Post subject: Add user to your forum ignore list Reply with quote

Već jesam, nista mi u toj šumi coda nije jasno!? Laughing
Back to top
View user's profile Send private message
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 05.07.2004 12:09    Post subject: Add user to your forum ignore list Reply with quote

ovo dodaj u head dio stranice..

Code:

<script language="javascript" type="text/javascript">   
   function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
      d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
   }

   function TextField(objName,x,newText) { //v3.0
      var obj = MM_findObj(objName); if (obj) obj.value += newText;
   }
</script>



a ovo ti je kod za button:

Code:

<input type="button" name="nesto" value="nesto" onClick="TextField('tekst_field','','tekst koji hoces upisati')">


"tekst_field" je ime text fielda u koji upisujes tekst...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group