Loading ...
Sorry, an error occurred while loading the content.

Re: overlib works with text links but not image links

Expand Messages
  • bridgerboyy
    Ok. I got the image thing figured out. Now, I just need to know how to add the code for the rollover on the button so that I can have a rollover with overlib
    Message 1 of 3 , Oct 1, 2007
    • 0 Attachment
      Ok. I got the image thing figured out. Now, I just need to know how
      to add the code for the rollover on the button so that I can have a
      rollover with overlib and the image swap of the button. I think I
      read that in order to do this you need to have "return overlib() as
      the last function. So, my question is: What would the syntax be for
      the function for the rollover?

      Here is what I have now:
      <a href="/ads/lambo.jpg" alt="Nice Car!" onmouseover="return overlib
      ('<img src=\'/ads/lambo.jpg\' ',ABOVE, OFFSETX, 10, OFFSETY, -50,
      CAPTION, 'Nice Car!', TEXTFONTCLASS,'putRight',HEIGHT, 150, WIDTH,
      150 );" onmouseout="return nd();"><img src="/ads/preview-button.jpg"
      border="0" /></a>

      Does anybody have a minute to point me in the right direction?

      Regards,
      Sean







      --- In overlib@yahoogroups.com, "bridgerboyy" <coperam@...> wrote:
      >
      > Hi,
      > I've been working on this for a few days and I can't seem to get it
      to
      > work. I'm pretty sure it is a problem with my javascript
      formatting.
      >
      > What I want to do is have a button with a rollover on a page and
      then
      > have another image popup on mouseover of the button.
      >
      > Here is what I have done so far:
      > {overlib linktext="any text" text="<img
      > src=http://www.shopjamestown.net/ads/lambo.jpg>"}
      >
      > The above code gives a popup over the text but when I try to put an
      > image where the text, 'any text' is then I get a red arrow instead
      of
      > an image.
      >
      > Could anyone give me tips on what to change to get the image to
      work
      > with the popup?
      >
      > Thanks,
      > Sean
      >
    • rabindra sarkar
      Message 2 of 3 , Oct 11, 2007
      • 0 Attachment
        <img src="example.php?mode=fit&image=template<?=$obj_promot1->tid;?>/template_big.jpg&width=120&height=100" alt="Banner" class="fotgal" onMouseOver="return overlib('',CAPTION, 'Carfed Template',FGCOLOR,'#FFFFFF',BGCOLOR,'#c6c6c6',WIDTH,375,HEIGHT,421,FGBACKGROUND,'example.php?mode=fit&image=template<?=$obj_promot1->tid;?>/template_big.jpg&width=375&height=421',LEFT, OFFSETX,20,OFFSETY,20,ABOVE);" onMouseOut="nd();" border="0"/>
         
        this is a simple example of using image popup i showed the image with emaple.php file you can just give the image path with its name and width height as we generally give



        Did you know? You can CHAT without downloading messenger. Click here
      Your message has been successfully submitted and would be delivered to recipients shortly.