Results 1 to 4 of 4

Thread: Need help with two things :D

  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need help with two things :D

    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.

    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&distrib ution=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&desti nations_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

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

    I am using the Textual Tooltip 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 :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

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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:

    Code:
    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:

    Code:
    <a href="../dynamicindex11/index.html" onMouseover="changetext(content[8])" onmouseout="changetext(default)"><small>Other</small></a>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    thr33swords (08-02-2008)

  4. #3
    Join Date
    Oct 2006
    Posts
    183
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    nevermind someone got it before me

  5. #4
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help, very much appreciated

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •