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
java, dhtml ili nesto trece

 
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 -> Client-side
View previous topic :: View next topic  
Author Message
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 09.12.2004 00:41    Post subject: java, dhtml ili nesto trece Add user to your forum ignore list Reply with quote

uglavnom, surfao sam po jednom site-u. davno dosta, ali imao je foru na news-ima da kad kliknes za pogledati komentare; odmah ih izbaci.
npr. pise "komentara 8" i ti kliknes i stranica se samo rasiri i pokaze ti komentare.
pretpostavljam da to pitanje pripada na ovaj dio foruma.
sad me zanima, kako se to izvodi i koji jezik se koristi jer bi mi bas to trebalo sad.
a nemam pojma ni kako pocnem traziti. Smile
Back to top
View user's profile Send private message
kelso



Joined: 19 Jul 2004
Posts: 507
Location: Zagreb -> Zapruđe

PostPosted: 09.12.2004 01:01    Post subject: Add user to your forum ignore list Reply with quote

e si probo umjesto guglanja kodirat?

http://www.koders.com/ --- ja sam našo korisnih stvari Rolling Eyes

_________________
Don't drop it!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
gog



Joined: 17 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 09.12.2004 02:25    Post subject: Add user to your forum ignore list Reply with quote

To ti je običan javascript, ukoliko ne nađeš ništa bolje možeš se poslužiti i skriptom koju ćeš naći na mom site-u, a koristi se za prikaz izbornika. Uglavnom fora je da sve komentare potrpaš u jedan div, staviš mu style="visibility: hidden" i onda JS-om mijenjaš to svojstvo...
Back to top
View user's profile Send private message Visit poster's website
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 09.12.2004 10:15    Post subject: Add user to your forum ignore list Reply with quote

evo primjer:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Show/hide primjer </TITLE>
<script language="JavaScript">
<!--
   function ShowOrHide(id) {
     var item = null;
     if (document.getElementById) {
      item = document.getElementById(id);
     } else if (document.all){
      item = document.all[id];
     } else if (document.layers){
      item = document.layers[id];
     }
     if (!item) {
     }
     else if (item.style) {
      if (item.style.display == "none"){ item.style.display = ""; }
      else {item.style.display = "none"; }
     }else{ item.visibility = "show"; }
    }
//-->
</script>
</HEAD>

<BODY>
<a href="javascript:ShowOrHide('divId');">show/hide</a>
<div id="divId">Ovo je DIV</div>
</BODY>
</HTML>


ako nesto nije jasno, vici...
Very Happy

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 10.12.2004 11:55    Post subject: Add user to your forum ignore list Reply with quote

tnx
budem probao i javio Cheers!
Back to top
View user's profile Send private message
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 16.12.2004 15:42    Post subject: Add user to your forum ignore list Reply with quote

radi, ali bi htio da se prvo ne vidi. pa da kliknes da se vidi.

sta moram promijeniti u kodu?
Code:

<script language="JavaScript">
<!--
   function ShowOrHide(id) {
     var item = null;
     if (document.getElementById) {
      item = document.getElementById(id);
     } else if (document.all){
      item = document.all[id];
     } else if (document.layers){
      item = document.layers[id];
     }
     if (!item) {
     } else if (item.style) {
      if (item.style.display == "none"){
         item.style.display = "";
      } else {
         item.style.display = "none"; }
      } else {
         item.visibility = "show";
      }
     }
//-->
</script>
Back to top
View user's profile Send private message
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 16.12.2004 18:00    Post subject: Add user to your forum ignore list Reply with quote

ne trebas nista mjenjati javascriptu, nego div-u koji hoces da ti bude sakriven na pocetku dodati
Code:
style="display: none;"


dakle, u mom primjeru dodas:
<div id="divId" style="display: none;">Ovo je DIV</div>

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 20.12.2004 19:57    Post subject: Add user to your forum ignore list Reply with quote

lol. sve sam probao. i bas pomislim to napraviti. ali sam se predomislio i tu postao. kao da se ne zajebavam vise. lol Smile
tnx Smile

p.s. go here click na komentirano Smile
Back to top
View user's profile Send private message
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 21.12.2004 12:47    Post subject: Add user to your forum ignore list Reply with quote

nice odradjeno Wink
mozda nekako staviti te linkove uocljivije?
(podvuci ih, stavit neku strelicu ili sl.)

PsychoPod wrote:

tnx Smile

np

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 22.12.2004 02:05    Post subject: Add user to your forum ignore list Reply with quote

strelicu sam mislio. ali nekako ne pase na site. ali sam zato vratio da se pojavljuje rucica na linkovima. da se barem to primjeti. ali razmislit cu o tome, iako sada imam posla za drugu sitnicu na site-u.
Back to top
View user's profile Send private message
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 -> Client-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