Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. leonnk

    help with jquery plugin

    I've got it: Just added this to the onimage function: if (image.height() < image.width()) { $('#main_image').addClass('vert-child'); } else { $('#main_image').removeClass('vert-child'); }
  2. leonnk

    help with jquery plugin

    I am using devkicks galleria jquery plugin to make a photo-gallery page. To work the plugin I just add in my large images in a list and the plugin resizes them as thumbnails and creates a main_image which is switched. Here is the link: http://tinyurl.com/qsdckd (I am also using the jcarousel...
  3. leonnk

    Img vertical align inside a div

    Thanks for that. I've given it a go but can't get it to work. I think my problem lies down to the fact that I'm using a javascript image gallery to generate the images. I am now looking to build a script that will add margin-top to images that have larger widths. I think this should work okay.
  4. leonnk

    Img vertical align inside a div

    I am trying to vertically align my img's inside a div. I have a series of portrait and landscape images which are generated through a javascript gallery (I add them as their full size images to the html and the script resizes them as thumbnails and creates the fullsize image in a specified div...
  5. leonnk

    Transparent Curved Borders

    Thanks for all the help. I've looked through the tutorials, and for ones relating to my problem they seem to suggest using full images for either the entire box or for two parts of a row. Unfortunately, my box needs to be resizable, so I can't use images that have set widths or height. I...
  6. leonnk

    onClick to change class property

    Hi feherke, Well, all images will be inside a div which will have it's own ID. Or otherwise I am only using the 'Selected' and 'NonSelected' class for these images. Not sure which one would be easier to use. Thanks
  7. leonnk

    onClick to change class property

    Okay, sorry, I didn't initially regonise the similarity from my problem to radio buttons. I have adapted the script very slightly like this: <script type="text/javascript"> <!-- function ch(what) { what.className=what.className=='select'?'select':'select' } //--> </script> So now it only...
  8. leonnk

    onClick to change class property

    Oh and I'm not using multiple classes.
  9. leonnk

    onClick to change class property

    Thank you! To take this further I trying to get the JavaScript to switch all other img classes to 'NonSelected', and I also don't want the img to be "de-selected" (i.e. switching back to 'NonSelected'). So to simplify: OnClick on image 1 will change it's class to 'Selected' - if already...
  10. leonnk

    Transparent Curved Borders

    I am trying to create curved borders using 8 divs (t, b, l, r, tl, br, bl, tr). However, my problem is that the background of my page is a gradient, so I am having to use curved edges that are transparent. However, this means that the borders from my t, b, l and r divs are showing (which are...
  11. leonnk

    onClick to change class property

    Hi, I am creating an image gallery and using javascript on my thumbnails to allow viewers to browse the gallery. I have CSS classes for the thumbnails: "Selected" and "NonSelected" Nonselected have hover attributes and selected is enlarged. How do I use javascript to change the class for...

Part and Inventory Search

Back
Top