HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Submit with image rollover
Post new topic   Reply to topic    HTML Help Forum Index -> Javascript
View previous topic :: View next topic  
Author Message
tonyeveland



Joined: 04 Nov 2009
Posts: 3

PostPosted: Wed Nov 04, 2009 10:13 am     Submit with image rollover Reply with quote

Hello,

The Submit with image rollover at the link below works well except for one thing. The sample code shows putting 1 submit button in a form and using the form action=".." to post a passable variable.

I need to have 2 submits in a single form and have each one post its own value.

Is this possible?

http://www.htmlcodetutorial.com/forms/index_famsupp_107.html
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Wed Nov 04, 2009 2:07 pm     Reply with quote

Using multiple submit buttons on a single form
tonyeveland



Joined: 04 Nov 2009
Posts: 3

PostPosted: Sat Nov 07, 2009 12:15 pm     Thanks for your reply Reply with quote

But that code doesn't have the image rollover that is described in the link in my first post
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Sat Nov 07, 2009 4:18 pm     Reply with quote

It shows you how to put the two submit buttons on the form. I'm sure the rollover effects can be adapted to the second button.
tonyeveland



Joined: 04 Nov 2009
Posts: 3

PostPosted: Sun Nov 08, 2009 12:20 pm     Thanks for your response Reply with quote

Here is the script. The only way it seems to have to pass a post value is in the <form action="x.php"...>

Do you see any way to pass a value using this script?


<SCRIPT TYPE="text/javascript">
<!--
var sr = new submitroll("menu_buttons/school_item_menu_button_delete.jpg","menu_buttons/school_item_menu_button_delete_over.jpg","mysubmit");
sr.write();
sr.alt="OK";
sr.width=60;
sr.height=60;
sr.otheratts="ALIGN=TOP";
//-->
</SCRIPT>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Javascript All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial