Quantcast
Viewing all articles
Browse latest Browse all 8876

Re: How do I make the Windchill logo in the header an active link?

Unfortunately, all that stuff is hardcoded in the HeaderTag class.  Use something like the following script at the end of netmarkets/jsp/util/end.jspf

 

<script>

     //This should get you started if not do what you want completely.

     //Be sure to come up with something that works on all of your supported browsers

     //I didn't check what happens if applLogo isn't present.

 

     var elements = document.getElementsByClassName("applLogo");

     for(var i = 0; i < elements.length; i++) {

         var element = elements[i];

         element.onclick = function(event) {

               //var theElement = window.event.srcElement

               var theElement = event.target

               //Ensure that we clicked the element directly and not a child or overlaying element. eg the headerActions

               if(theElement.className != null && theElement.className.indexOf("applLogo") == 0) {

                   window.location = "http://www.test.com";

               }

         }

  

  //Most of the same stuff.  Pull out and place in maybe an "isApplLogo(element)" function.

  element.onmouseover = function(event) {

               //var theElement = window.event.srcElement

               var theElement = event.target

               //Ensure that we clicked the element directly and not a child or overlaying element. eg the headerActions

               if(theElement.className != null && theElement.className.indexOf("applLogo") == 0) {

  //Doesn't account for inner elements.  eg headerActions

                   theElement.style.cursor = "hand";

               }

         }

     }

  

  //cursor: pointer

</script>


Viewing all articles
Browse latest Browse all 8876


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>