Jump to content

change 1 piece of page with numbers


wezze

Recommended Posts

hey i got a little question,

ive got a site where i got this the main section of my page.

<section id="main" class="clearfix">
	<section id="content">
                    <article><?php include("includes/article1_nl.php"); ?></article>
               </section>

what i would like to achieve is when putting numbers under this article like <1-2-...etc> and pressing nr2 article 2 loads in the place of article 1 without

having to make a second page only a another include page.

Is this possible?

 

thx

Link to comment
Share on other sites

ok cool but is that the only piece of code ill need? I had a quick look on google (now i know what to look for) and saw they use

<head><script src="http://code.jquery.com/jquery-latest.js"></script></head>

will i need to put this in too?

 

<script>
  $("section#content article").load("includes/article1_nl2.php");
</script>

 

thx

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.