View Single Post
Old 09-23-2012, 02:10 PM   PM User | #11
begood321
New Coder

 
Join Date: Sep 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
begood321 is an unknown quantity at this point
Nevermind guys I got it working, here is the solution below plus uppercase function:

Code:
cmCreatePageviewTag("<<label id="myDiv1"></label>>","<<label id="myDiv2"></label>>");

<script type="text/javascript">

document.getElementById("myDiv1").innerHTML = window.location.pathname.split('/').join(':').toUpperCase();

document.getElementById("myDiv2").innerHTML = top.location.pathname.replace(/\\/g,"/").replace( /\/[^\/]*$/, "" ).split('/').join(':').toUpperCase();

</script>
begood321 is offline   Reply With Quote