I come up to an idea of having this on my forum,..the idea is similar to wowheads tool tip,i'm thinking of creating a list of characters in the game i played, wrap each character + description in a container with ID,(there goes the Load function)...whenever a member of our forum post a battle report.. ofcourse it will contain the names of the characters..what i want is when they submit their post, it will automatically be replaced by a link(there goes the replace funtion)...the link will not bring the you anywhere, it will just have a "#", then when you click that link, it will slide up the description that is from the load function...hmmm, do you think this is possible?if jquery has the capacity to get info from a database, would that be much easier?if you think that this is possible, can you create a small demo for me...thanks!
Hmm.. maybe its.. can i see something of "character + description"
you can see it here, [code]http://wiki.the-reincarnation.org/index.php/Units[code]
Hmm.. ok, i have a code:e.g:if you write:Chimerathen it will display:Chimera 1 Melee 3 Fire Breath Flying, ScalesI don't know if i can turn it into tooltip but i can try
hahaha..what i want ise.g.if you writechimerait will be a linkchimera(when you click it toggles down the description)
Hmm.. good i think i can do this
wow..take your time...i can manage to improve it, just work on how it will work...i can modify them..hehe
This is just a text:chimera
hehehe...testing it on your forum eh...haha, link achieved...toggle remaining
Uff!! it won't toggle o.O
there's no way?
I may try later..
okay..ill sleep for now..thanks for trying,,,
It will not work Same with the tooltip :/jQuery won't work in posts
hmmmm, but the tooltip works on my forum, on posts
Then it looks that i have a bug on my forum
yeah, debug it...hahaha...but can you have a rough code fore my request
so how are you able to replace the word chimera by a link?
<script>var reptag=document.getElementById('testing');var x=reptag.innerHTML;x=x.replace(/chimera/gi, '<a href="#" class="trigger">Chimera</a><div style="display: none;">description</div>');reptag.innerHTML=x;reptag.removeAttribute('id');</script>
could you explain me that code..hehehe...each element
;x=x.replace(/chimera/gi, '<a href="#" class="trigger">Chimera</a><div style="display: none;">description</div>');
"<a href="#" class="trigger">Chimera</a><div style="display: none;">description</div>"
hmm do you mean if i post the word chimera alone, it will not have the link?
It will o.O xD
hmm...if i paste that on over-all header..will that work immediately?
Go to page : 1, 2