I've got a wordpress theme in which i've to produce a page which has a movie that goes loop. it's 3 menu points which alter the div text without reloading the page.

To date not a problem.

<a href="javscript:void(0);" onclick="getdata('text.php','content2');">Click here – put it in content box 2</a>

However when im on the different page and that i click for instance the 2nd link, it will visit the video page and alter the written text towards the second one.

How do i do that?

It is possible to method of doing by using?

url/wordpressname/#1

Found an answer: i discovered an answer here: http://www.deluxeblogtips.com/2010/05/how-to-ajaxify-wordpress-theme.html

that we transformed to suit me:

jQuery(document).ready(function($) {
    var $mainContent = $("#text"),
        siteUrl = "http://" + top.location.host.toString(),
        url = '';

    $(document).delegate("a[href^='"+siteUrl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {
        //location.hash = this.pathname;
        //return false;
    }); 

    $("#searchform").submit(function(e) {
        location.hash = '?s=' + $("#s").val();
        e.preventDefault();
    }); 

    $(window).bind('hashchange', function(){
        url = window.location.hash.substring(1); 

        if (!url) {
            return;
        } 


        if (url=="1") {
            $mainContent.html('<p>Text1</>');
        } 

        if (url=="2") {
            $mainContent.html('<p>Text2</>');
        } 

        if (url=="3") {
            $mainContent.html('<p>Text3</>');
        } 

        if (url=="4") {
            $mainContent.html('<p>Text4</>');
        } 


       // url = url + "#content"; 

        //$mainContent.animate({opacity: "0.1"}).html('<p>Please wait...</>').load(url, function() {
            //$mainContent.animate({opacity: "1"});
        //});
    });

    $(window).trigger('hashchange');
});