WordPress.org

Forums

How do I add a dynamic link to theme with Javascript (1 post)

  1. matius
    Member
    Posted 4 years ago #

    function OpenSoundFrame (){
    	top.location.href = "http://localhost/mysite/wp-content/themes/mytheme/sound_frame/"+framecolor+"/FRAME_"+soundloc+"_"+soundframe+".htm" + "?" + window.location.href;
        	}

    That is: http://localhost/mysite/wp-content/themes/mytheme > how do make this dynamic so I can use the code in other sites.

    Thanks for any help-

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.