PDA

View Full Version : Search 'Go' Button


jxm28788
12-Oct-2003, 08:24 PM
I'm sure this will have been asked before, but I can find it in the KB or search... so...

Is there anyway to get the 'go!' button next to the 'quick search' box to change when the mouse goes over it...?

All my other buttons change colour but the go button doesn't change, which looks odd... I realise that the buttons are different types technically, but visually it would be good for them to match!

cdicken
14-Oct-2003, 04:12 PM
Try this...

<input type="image" src="quicksearch.gif" border="0" name="ACTION" onMouseOver="src='quicksearch2.gif' " onMouseOut="src='quicksearch.gif' ">

...obviously changing image filenames as necessary.

jxm28788
15-Oct-2003, 07:38 AM
yep, that works - thanks.:cool:

rmladden
19-Oct-2003, 01:55 PM
How do I add the second image to the preload list?

jxm28788
19-Oct-2003, 02:02 PM
what's a pre-load list?:)

rmladden
19-Oct-2003, 02:12 PM
Actinic add something like this to the body tags:
OnLoad="PreloadImages('top2.gif','back2.gif','home2.gif','sitemap2.gif','info2.gif','search2.gif','cart2.gif','order2.gif','mail2.gif')" based upon your navigation settings. It does not know about the new secondary image. Preloading eliminates a delay to get the image on the first mouseover.

jxm28788
19-Oct-2003, 02:26 PM
that would explain why I get a delay on the first mouse over of my new buttons :)

Now I want to know the answer to...

rmladden
21-Oct-2003, 12:17 AM
I added this to Act_Primary.html to preload the image. I put it just above the other <script> tags.

<SCRIPT LANGUAGE="JavaScript">
go_button2 = new Image();
go_button2.src = "go_button2.gif";
</SCRIPT>

Change go_button2 to the name of your mouseover image.

martinlompa
04-Sep-2011, 02:52 PM
Hi Guys
How can I replace the image of the "GO" button to text in a specific colour?
thanks so much.

NormanRouxel
04-Sep-2011, 02:57 PM
Welcome, Martin

This is a 2003 thread. Are you really using Actinic V7 or earlier?

Rather unlikely for a new member of the Community.

If not, delete this thread and re-post in the correct forum.

It will also help if you can give us the URL of your site so we can see what you need changing.