Jump to content

njdirt

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

njdirt's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks Haku, you're right, it does require Javascript. I am going to use the Lightbox2 code from the link I posted up. Thanks for your quick response, too!
  2. Here is an example that uses Flash. I know there is something that uses only CSS though. http://www.huddletogether.com/projects/lightbox2/
  3. Hello, So I'm trying to make it so that on my site, when a user clicks a particular image, a semi-transparent <div> shows up covering 100% of the site and the larger image is shown centered on top of this. I know there must be a popular code out there to do this as I've seen it many times. Unfortunately, I can't remember any sites I've seen it on... if you have seen this, could you please post a link to a site that uses it? Thanks in advance!
  4. Hello, I am working on applying a coupon code option to a Paypal integrated store html page on my website. I want the user to have the ability to enter a Coupon Code for a discount on each item. I pirated some sample how-to code from a site (sorry I don't have the info), but I think the fact that I have multiple items listed on the page prevents it from working. I've posted the relevant code below. I think the problem may be in the assigning of the discount_rate variable where I use 'document.contra.discount_rate.value = "10"; Total JS noob too so I'm trying to figure it out as i go. Thanks in advance! <form name="contra" method='POST' action='https://www.paypal.com/cgi-bin/webscr' target='paypal' onSubmit="paypal=window.open('https://www.paypal.com/cgi-bin/webscr','paypal','width=680,height=400,status=yes,location=no,menubar=no,scrollbars=yes,resizable=yes');paypal.focus();" > <input type="hidden" name="business" value ="xxxxx"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="add" value="1"> <select name='os0' size='1' style='background-color: #FFFFFF; color: #000000;'> <option value='Select Top Tube'>Select Top Tube</option> <option value="21.5"">21.5"</option> <option value="22"">22"</option> </select> <input type='hidden' name='on0' value='Top Tube'> <select name='os1' size='1' style='background-color: #FFFFFF; color: #000000;'> <option value='Select Color'>Select Color</option> <option value='Black'>Neon Green</option> <option value='Brown'>Dark Orange</option> <option value="Orange">Black</option> </select> <input type='hidden' name='on1' value='Color'><br><br>Qty <input type='text' name='quantity' size='3' value='1'> <input type='submit' onclick='if(os0.selectedIndex==0){alert(os0.options[0].value);os0.focus();return(false);}if(os1.selectedIndex==0){alert(os1.options[0].value);os1.focus();return(false);}' value='Add to Order' name='B1' style='background-color: #ff6600; color: #000000; font-weight: bold'> <input type='submit' value='View Order' name='display' style='background-color: #ff6600; color: #000000; font-weight: bold'> <!-- promo code --> <br> <input type="text" name="promo"> <input type="button" value="Check It" name="Submit" onclick=javascript:validate(promo.value,"GOLD10") > <script language="javascript"> function validate(text1,text2) { if (text1 == text2) { window.alert("Nice, you get a 10% Discount!"); document.contra.discount_rate.value = "10"; document.contra.discount_rate2.value = "10"; document.contra.on3.value = "Coupon Entered"; document.contra.os3.value = "GOLD10"; } if (text1 !== text2) { window.alert("Sorry, No Discount!"); } } </script> <!-- end promo code --> <br><br><noscript>Please enable Javascript to order this item</noscript><input type='hidden' name='item_number' value=''> <input type='hidden' name='item_name' value='MOB'> <input type='hidden' name='amount' value='399.99'> </form>
  5. That is the proper way to do it, but I found that if I make the "::" the same size as the larger of the two menu fonts, everything works fine. Not sure how or why, but it does so in all tested browsers, so I'm content. Thanks for the proper fix tho! I will keep the menu lists in mind for future site builds.
  6. Hello, I hope this is a properly labeled thread, but here is my issue: I have a menu, which is all on one line (in case it matters). The link that is being hovered over is larger than the rest of the menu items, and in between each item is "::". Now, each time a link is hovered over, the "::" drops a pixel or so. I want everything to stay vertically stationary (except the hovered text, which expands higher. I feel like it has something to do with baseline, but I can't find any info on it. Here is the link: http://www.blackmarketbikes.com/10/index.php Thanks in advance!
  7. Hello, How can I empty all values in a db field (within a table of course) and then reload every entry with the same info? For instance, take a pref_contact field. There are many entries in this table, some have a value for "pref_contact" and others don't. Either way, I want to change the field value of all of them to "11000". Is this the correct SQL query: INSERT INTO TableX (pref_contact) VALUES (11000) And will it change the value in every entry in the table? Thanks in advance!
  8. Thanks, I think I figured out a way to make it work for me. The stored value is a 5 digit number composed of zeros and ones, with each digit acting as an operator for a specific option. Then for each switch, I look to the first, second,...,fifth digit to see if it is true or false, like so: $ch_email = substr($preferred_contact,0,1); $ch_phone1 = substr($preferred_contact,1,1); $ch_text1 = substr($preferred_contact,2,1); $ch_phone2 = substr($preferred_contact,3,1); $ch_text2 = substr($preferred_contact,4,1); Thanks again, hope this helps somebody out. I'm trying to add more options to a db with thousands of entries already, so I can't add fields as I please...
  9. Hello, Thanks for the quick replies! I have not yet stored anything in the database. Basically, I'm storing 5 boolean switches in one field in the db. I'm going to see if I can make it work better with the suggestions you gave me Neil. Thanks, I'll let you know how it turns out!
  10. Hello, I think this is a simple enough problem and I hope somebody knows how to do it. I have a page that has five form options which correspond to a value in a database. If all five options were selected, the value would be '12345' and if the first second and fifth were selected, the value would be "125". I need some way of determining from the value which options are to be selected. Optimally, I'd like something along the lines of: if $value contains "1" then ... if $value contains "2" then ... Any ideas? Thanks in advance!
  11. Found a solution for my problem here: http://www.javascript-fx.com/fade_rollovers/general_help/help_remote.html Works great - thanks for all of your help too!
  12. Thanks, Film God! I'll see if I can;t make that work
  13. Hello, So, I know I've seen this done before, but I don't know how to do it: Take this Layout, though right now it is just an image... If someone were to mouse over "About" I would like the text "Who We Are" to appear to the left of About, in that open space. If someone moused over "Services" I'd like "What We Do" to appear in the same space. I will also have the links themselves do a rollover effect, though I know how to do that. If anyone could point me in the right direction, I'd appreciate it very much! Thanks in Advance!
  14. Hey, I'm looking for a PHP blog that has the ability to pull posts from other blogs via their RSS feeds and post them into my own blog, while still maintaining the ability to post my own entries. Anyoner every heard of any? Thanks in advance!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.