PDA

View Full Version : Not sure how to do this.... help please


LadyBeth
09-01-2003, 11:47 PM
Hi all,
I have made buttons and used them on sites before, but have never had to consider .php at the same time. Below is the code for one of my buttons. I think something has to change for the php but I don't know what. These are java buttone I am working on...

<a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('calendar','','calendar_f2.gif',1);" ><img name="calendar" src="calendar.gif" width="96" height="28" border="0"></a>

Can I simply upload the images, pull the old code out and place this code on the home page? I want to add the buttons on both the forumhome and also the home page which is vbhome lite.

Thanks :)
Beth~

assassingod
09-02-2003, 05:59 AM
You'll have to add the javascript code do you header template, between
<script language="javascript">
...
</script>

No file changes nessaccary.

LadyBeth
09-02-2003, 07:25 AM
Thanks! :)

assassingod
09-02-2003, 07:30 AM
Oops, I meant the headinclude template;)

LadyBeth
09-02-2003, 07:47 AM
It worked better inthe head template than in the headinclude template. In the headinclude template I don't get the mouseover, but in the head I do, but it also keep the button directly next to it from working for some reason....

Also, the path for theother buttons, where will I copy that from? aren't some of those paths user specific?

assassingod
09-02-2003, 07:50 AM
Im not sure what you mean, but put the images in the /images/ folder and use the replacement {imagesfolder}

I think thats what you mean

LadyBeth
09-02-2003, 07:54 AM
I had that part right ;)
I just can't seem to ge the button to light up when I mouse over it....

assassingod
09-02-2003, 08:05 AM
Oh right, sorry.

Whats your rollover code? 'Cos I have a much easier way of using rollovers