Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jochite Friend
    #188113

    I’m trying to insert the following line of code that would correspond to a button that would go to the right side of the web. For now the code appears above the header or just gives error when trying to view the web.

    I inserted the same in index.php between <head> and </ head> but gives no result. What position and what file should I put it?

    <head>

    language=”JavaScript”type=”text/javascript”> <script createDiv function () {var divg = document.createElement (“div”) var newImg = document.createElement (“img”) var = document.createElement NEWLINK (“a”); divg.setAttribute (“style”, “position: fixed; top: 250px; right: 0px; z-index: 9999;”); newImg.src = newImg.alt = “lasprovincias.es Web Awards”; newLink.href = “http://premiosweb.lasprovincias.es”; divg.appendChild (Newlink); newLink.appendChild (newImg); document.body.appendChild (divg) ;} window.onload = createDiv; </ script>

    </ head>

    A greeting

    Ninja Lead Moderator
    #495494

    You can put it into head tags

    Open templates/ja_purity_ii/blocks/head.php file

    Add above script in the end of file

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum