Jump to content
MakeWebGames

quote help


lucky3809

Recommended Posts

I looked everywhere and cant seem to find anything in the forum and tried w3schools with no help there either.

How would I go about getting a quote inside another quote for an example...

 

Example
Example
...

I think its called quote in another quote tag, I've been trying to read up on it for over a week and cant seem to find anything, and wish to use that code in my forum that im coding, if anyone can either help or direct me to a website I would greatly appreciate it ;)

Link to comment
Share on other sites

To get the contents of the quote, create IDs for the quotes, but keep it to a structure.

If you are pulling the data from a database it should be very easy to do this.

 

<div class="quote" id="quote_1">
   <div class="quote" id="quote_1_1"></div>
</div>
{ ... }

<script type="text/javascript">
selectQuote = function(id, level) {
   obj = document.getElementById("quote_" + id ((!level) ? "" : "_" + level));
   return obj.innerHTML;
}
</script>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...