Jump to content

jefkin

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by jefkin

  1. Gosh, I must be old.Anyone ever here of 'vi' ???Now-a-days I use 'vim' and 'cream'.Vim is a nicer more powerful version of vi. and Cream is the same thing with windoze type menus and a cleaner integration with windows.Jefkin
  2. Slightly off topic, ... but to clarify While I'm not, myself, Walter Zorn, I have downloaded and examined his library -- actually quite a while ago.The example that you pointed out actually does not use the same image. The image is sampled by the (very hefty) javascript library, which then generates a zillion little div's with background colors to match the image. Then these are positioned on the web site.Basically, this technique is not extreemly efective, and is often rather slow.Back to topic:As imbored531 said, just make a copy.For all but the most gigantic images, make a copy of your image using your favorite image software, almost all have some sort of vertical flip. ... So, flip it save it, and use the second one.If you're stuck with a really large image, ... perhaps it would be better to rethink the design layer. Without any code, it's hard to say.Jefkin
  3. Hi everyone, Just wanted to make my first post here count. A) Everytime I have a tough issue with web design/programing/ui, this site is one of my first 'go-to' places to find answers.That said, contrary to the prohibition on page:DHTML ExamplesI found a way to make a drop down change color with every browser I've tried.I've included my code. <script>var sel; // variable for holding an HTML DOM select objectvar opt; // variable for holding an HTML DOM option objectfunction color_me(id){ if ((sel = document.getElementById(id)) && (opt = sel.options[sel.selectedIndex])) { // note this if should be commented out, unless you want to flip images with your // color changes /* ** commenting -- not important here ** if ((img = document.getElementById('img_' + id)) && (newimg = document.getElementById('flag_id_' + opt.value))) { img.src = newimg.src; } ** ** end image swap code. */ sel.style.backgroundColor = opt.style.backgroundColor; sel.style.color = opt.style.color; }}</script><select id="flag_sel" name="sel_color" onChange="color_me('flag_sel');"><option value="7" SELECTED style="background:orange;color:#000;">orange</option> <option value="1" style="background:white;color:#000;">white</option> <option value="4" style="background:cyan;color:#000;">cyan</option> <option value="5" style="background:gray;color:#000;">gray</option> <option value="6" style="background:green;color:#fff;">green</option> <option value="8" style="background:purple;color:#fff;">purple</option> <option value="10" style="background:yellow;color:#000;">yellow</option> <option value="12" style="background:lightslategray;color:#fff;">lightslategray</option> <option value="14" style="background:sienna;color:#fff;">sienna</option> <option value="15" style="background:teal;color:#fff;">teal</option></select><script>color_me('flag_sel');</script> I tested the exact code above in your handy-dandy 'try-it' interface, and it works great.I'd be interested if you could find a place (browser) where this doesn't work. It's pretty straight forward. The only tricky part I commented out (but left there for any guru's interest).Jefkin
×
×
  • Create New...