Title: php script &#8211; where do I put it
Last modified: August 18, 2016

---

# php script – where do I put it

 *  [ozpoker](https://wordpress.org/support/users/ozpoker/)
 * (@ozpoker)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/php-script-where-do-i-put-it/)
 * I have added a simple mouseover css class which I think is working but I need
   to add the script to call on it.
 * The script is
 * `function setBut(pDiv,pOver) { 
    if (typeof(pDiv.style) == 'undefined') {  return
   false;  }  if (pOver) pDiv.className='hover';  else pDiv.className='nohover';}
 * but evry time I add it I get php parse errors.
 * Where should add the script and how ?
 * Please
 * Test page : [http://www.ozpoker.net.au/private-tournaments/](http://www.ozpoker.net.au/private-tournaments/)
 * When done a mouseover the purple banner should call a background image – (wrong
   image for now – but I just want to see I can get it work)
 * the mouseover code is
    `<div onmouseover="setBut(this,1)" onmouseout="setBut(
   this,0)" onclick="window.location='http://www.ozpoker.net.au/send/vegas247.html'"
   > <img src="http://www.ozpoker.net.au/banners/vegas247125.gif"> </div>
 * and I have added that in a html module via nybbles sidebar module
 * Thanks in advance

The topic ‘php script – where do I put it’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [ozpoker](https://wordpress.org/support/users/ozpoker/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/php-script-where-do-i-put-it/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
