Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Collapse/Expand JS

  • This topic is empty.
Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #178716
    Black Mamba
    Participant

    I’m sorry if that “Any ideas?” comment came across as me being impatient or demanding anything. That was not what I meant. At all!

    I know it’s a lot of code and for that reason I guess I was expecting something like “Okay, got it. I’ll look into it when I get a chance”.

    I’m nothing but appreciative of all the help you’ve given me.

    Anyway, it worked!

    Just had to remove one curly bracket from the second chunk of code. (Dreamweaver warned me about it)

    if(dd.n4 && dd.e.but > 1 && dd.e.src == d_o.oimg && !d_o.clone){
                return false;
            if($(d_o.div).height()){ //much more reliable
                d_o.h = $(d_o.div).height();
            }
            if(d_o.visible && dd.e.but <= 1 && dd.e.x >= d_o.x && dd.e.x <= d_o.x+d_o.w && dd.e.y >= d_o.y && dd.e.y <= d_o.y+d_o.h)
            {

    Thanks a lot!

    #178721
    Black Mamba
    Participant

    It’s not that one.
    It’s the one after return false;

    #178726
    Black Mamba
    Participant

    With that curly bracket there Dreamweaver warns me about a syntax error on line 1210. If I ignore that and preview it in Safari it doesn’t work.

    Without that curly bracket it works flawlessly!

    #178730
    Black Mamba
    Participant

    OK, I got.

    You said “The middle if-statement is new.” so I only copied that if-statement. But you’ve also opened a curly bracket before “return false” (which I hadn’t copied) so it had to be closed.

    Anyway, it was working without both curly brackets, but if you say they should be there, I’m gonna put them there…

    Thanks again.

    #178841
    Black Mamba
    Participant

    Got it, thanks.

    Just one other question.
    You’ve seen the drag/drop and fade in/out on hover effects.
    Do you think it’d be too hard to add support for touch devices or fairly doable?

    I’ve been reading quite a lot about it (great article here) but haven’t quite gasped how hard it would be for a site like this.

    Would something like this and this do it?

    Thanks.

    #178912
    Black Mamba
    Participant

    Some weird stuff is going on. I was trying to post, I’d click ‘submit’ but the comment would never show up.

    Will this one show up?

    #178916
    Black Mamba
    Participant

    It did! Hip hip hooray!

    Anyway…
    I read that, but I’m not sure I get it.

    This is what I was trying to do.

    It would solve the issue with the hover effect. Wouldn’t it?

    I’d test it, but I currently don’t have a touch device with me.

    #178917
    Black Mamba
    Participant

    Now it didn’t work again.
    I removed a link I was trying to post and it worked… how weird!

    This is the link: http://bit.ly/1m07grB

    Let’s see if it works this way…

    #178918
    Black Mamba
    Participant

    Yep, it was the address that was causing some sort of issue…

    #178928
    Black Mamba
    Participant
    #178915
    Black Mamba
    Participant

    It did! Hip hip hooray!

    Anyway…
    I read that, but I’m not sure I get it.

    This is what I was trying to do.
    http://www.hnldesign.nl/work/code/mouseover-hover-on-touch-devices-using-jquery

    It would solve the issue with the hover effect. Wouldn’t it?

    I’d test it, but I currently don’t have a touch device with me.

Viewing 11 posts - 16 through 26 (of 26 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.