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?


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();

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

        if (!url) {

        if (url=="1") {

        if (url=="2") {

        if (url=="3") {

        if (url=="4") {

       // url = url + "#content"; 

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