conradphp Posted October 4, 2014 Share Posted October 4, 2014 this code is asnippet whuch create anav bar link how do insert a simple text link within this bit of code eg Blog which goes to http:/ysiteblog.com sorry i am new so be gentle topnav.txt Link to comment https://forums.phpfreaks.com/topic/291428-neewbie-help/ Share on other sites More sharing options...
sKunKbad Posted October 4, 2014 Share Posted October 4, 2014 Here is your code: var formatNav = function() { //replacing nav code sale link for mall $('.sf-menu li a').last().html('Visit the mall'); $('.sf-menu li a').last().attr('href', 'http://mall.myflashtrash.com/'); $('.sf-menu li a').last().attr('target', '_blank'); This looks like jQuery code (JavaScript). Your question isn't very clear. Do you want to use JavaScript to create a simple link? Link to comment https://forums.phpfreaks.com/topic/291428-neewbie-help/#findComment-1492680 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.