Log in

View Full Version : Need help with two things :D



thr33swords
07-27-2008, 02:17 AM
Hi guys,

First off, I love Dynamic Drive. It makes life so much easier. I am a graphics designer, but I make a website or two every now and then. The scripts on here are brilliant and saves me a lot of hassle with coding. (I suck at coding).

Anyway, I have made a website for my Dad's company, one of which uses a form to enquire about the company's services, as seen below:

The form. (http://mgl.net.nz/enquiry.html)

Now, when you hit submit, it gives you an email that looks like this:


name=John+Doe&company=John%27s+Company&position=Manager&phone=%2809%29+123+4567&email=John%40company.com&fax=%2809%29+123+4568&industry=6&warehousing=on&distribution=on&specifications=3&units=3&sku=5&pallet=90&rack=&carton=10&cases=&drums=&hanger=&unstackable=&stackable=&pails=&ibc=&arrival20=21&arrival40=41&arrivallcl=55&delivery20=2&delivery40=4&deliverylcl=55&localdeliveries=10&cargovolume=100&volume=2&courier=on&deliveries_air=&deliveries_sea=&deliveries_courier=300&destinations_air=&destinations_sea=&destinations_courier=Auckland&ports=auckland&carriers=Fliway&submit=Submit

(dummy information used)

Now, thats one hell of a mess :P And it will surely confuse the poor office lady. What I want to know is, how can I have the form display the email in a more readable format?

I'd like it to perhaps put the information undear headings (such as the ones on the form, ie. Contact Details, Services Required etc). And also, remove the nasty % and & characters etc.

Any suggestions? All help appreciated :D

--==*==--
Question number 2:

I am using the Textual Tooltip (http://www.dynamicdrive.com/dynamicindex5/linkinfo.htm) script on one of the pages.

Is there a way to make the original text reappear when your mouse is no longer hovering over a link? Unfortunately I cannot explain it any better, so here's a link (http://mgl.net.nz/) :P

On the left hand side of the page are 4 links, I used the script to make different text appear below the links as you mouse over them. However, when you take the mouse pointer away, the text stays the same. I want it to return to what was originally there.

Thanks again guys :D

thetestingsite
07-27-2008, 02:23 AM
For the first question, use a form to mail script (if you don't have a server side language installed on the server your site is on, you can find a remotely hosted one. Just do a google search). As for the second question; in the script, place the highlighted below just before the content variable like so:




var default = '<p class="paragraph">MGL offers more than the &quot;industry standard&quot; Import, Export and Custom Brokerage service.</p> <ul><li class="paragraph"> Custom bonded and quarantine (MAF) certified warehousing</li> <li class="paragraph"> Unpacking/packing container stations (locally and overseas)</li> <li class="paragraph"> Integrated, managed warehousing and inventory management</li> <li class="paragraph"> Nationwide distribution</li> <li class="paragraph"> Customised supply chain solutions</li> </ul> <p class="paragraph">Our services are tailored to your individual supply chain requirements.</p>'; //place your default html here

var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have


Then, for all the links, add this:



<a href="../dynamicindex11/index.html" onMouseover="changetext(content[8])" onmouseout="changetext(default)"><small>Other</small></a>


Hope this helps.

motormichael12
07-27-2008, 03:09 AM
nevermind someone got it before me

thr33swords
07-27-2008, 12:43 PM
Thanks for the help, very much appreciated :D