Hard Drop Feature Suggestion Page

Started by larrytetris, December 27, 2010, 03:52:14 AM

Previous topic - Next topic

meow

Quote from: Blink
I think the control+click problem only happens in webkit browsers (chrome and safari).  They used to also have a problem where middle clicking would open in both the new tab + current tab, but that's since been fixed.  I would suggest middle clicking to open in a new tab until either I fix the problem or they do with webkit.

Using Firefox 3.6.x, I can confirm that the caffeine's ctrl+click behaviour is replicable.

Blink

Quote from: meow
Using Firefox 3.6.x, I can confirm that the caffeine's ctrl+click behaviour is replicable.

Okay, does anybody see something wrong with the button code that might be causing the behavior?

    <td class="dmenu" onclick="java script:window.location.href='http://harddrop.com/wiki/';" onmouseover="this.className='dmenu2';showMenux('memmenux4');" onmouseout="this.className='dmenu';hideMenux()">
        <a href="http://harddrop.com/wiki/">WIKI</a>
    </td>

larrytetris

Quote from: Blink
Okay, does anybody see something wrong with the button code that might be causing the behavior?

    <td class="dmenu" onclick="java script:window.location.href='http://harddrop.com/wiki/';" onmouseover="this.className='dmenu2';showMenux('memmenux4');" onmouseout="this.className='dmenu';hideMenux()">
        <a href="http://harddrop.com/wiki/">WIKI</a>
    </td>


Is the border around the text defined as the same thing as the text? The blue color within the text (e.g. inside the O in "FORUMS") is part of the link. Otherwise I'm clueless about the coding.
[div align=\\\"center\\\"]www.hrlarry.com[/div]
[div align=\\\"center\\\"]Hate cannot drive out hate, only love can do that.
~Martin Luther King Jr.
[/di

xlro

#33
Quote from: Blink
Okay, does anybody see something wrong with the button code that might be causing the behavior?

    <td class="dmenu" onclick="java script:window.location.href='http://harddrop.com/wiki/';" onmouseover="this.className='dmenu2';showMenux('memmenux4');" onmouseout="this.className='dmenu';hideMenux()">
        <a href="http://harddrop.com/wiki/">WIKI</a>
    </td>

well it behaves correctly (as in how you coded it) I'd say, since ctrl+left click (in contrast to middle click) triggers the onclick event in the browser, so it executes your js that loads the page in the current tab + the ctrl-click on a normal <a> link opens it also in a new tab

maybe it is possible to check in the onclick handler / code, if the click was done with ctrl held down? not sure, but would be an option /quickfix - my js is very rusty :)

edit:

ok, I quickly had a look, you can add an easy check, by modifying it like this:

onclick="java script:if(!event.ctrlKey){window.location.href='http://harddrop.com/wiki/';}"

as before, the ctrl+click (as well as the middle click) wont work ofc, if you dont hit the actual link (<a>), but the box around.

personally I would just remove the onclick event from the td box, this way there are no issues for any kind of click (with just a normal <a>), it's not like the boxes are really big, or ppl wouldn't click on the text anyway
[div align=\\\"center\\\"]NullpoMino[/div]

XaeL

Quote from: caffeine
I may as well...

Am I the only one here who ctrl+clicks? For example, say I'm on the home page and am chatting on the shoutbox. Now, say I want to open the forums in a new tab. Under normal behavior, I'd be able to hold down ctrl and click on the "forums" button near the top of the home page. This would simply open a new tab for the forum. However, the buttons up there are funky. If I ctrl+click them, they open the page in a new tab and the current tab.

Small, insignificant annoyance, though. No biggie.
That hapens to me too

Btw caffeine i use mouse3 (aka middle click) its faster than ctrl+click but does same thing.



QuoteLike many setups here, it is useful if your opponent doesn't move and you get 4 Ts in a row.

Dakhath

Quote from: xlro
ok, I quickly had a look, you can add an easy check, by modifying it like this:

onclick="java script:if(!event.ctrlKey){window.location.href='http://harddrop.com/wiki/';}"

as before, the ctrl+click (as well as the middle click) wont work ofc, if you dont hit the actual link (<a>), but the box around.

personally I would just remove the onclick event from the td box, this way there are no issues for any kind of click (with just a normal <a>), it's not like the boxes are really big, or ppl wouldn't click on the text anyway


You beat me to it. Yeah, that fix works fine (and I just tested in Firebug to verify this)... but I kinda agree that using it on every single button is a little bit redundant. If you're concerned about people missing the text in the boxes, turn them into images and use image rollovers instead. That might slow down your page load time, but I'm thinking most of us are on broadband anyway so it wouldn't be noticeable.

I'm an admin over at Visionary Tales. Yeah, we're a role playing forum. Yes, this means I'm geekier than you are.

Rosti_LFC

Quote from: Zircean
What is this, MySpace?
Next we'll be having really irritating and intrusive music that plays automatically when you're on someone's profile.

Ohwait...

Also, an actual suggestion:

Can we have a different emoticon for  than the one currently there? Or just no emoticon at all? The one that's currently there is totally different to what I ever intend to be there when I write it :\

<Rosti> does it annoy anyone else
<Rosti> that the emoticon for ":P" on HD is totally not what :P usually represents?
<clincher> YES
<Zircean> yes omg

coolmaninsano

#37
I like the

Rosti_LFC

#38
I don't mind it as an emoticon, but it needs a different handle.

xlro

#39
on that subject: I'd like a setting in the user options that automatically unchecks the "Enable emoticons?" checkbox in the post options per default, thx
since the images especially for the common :) ;) and :P all pretty much suck, text is the way to go here
[div align=\\\"center\\\"]NullpoMino[/div]

gif

Quote from: xlro
on that subject: I'd like a setting in the user options that automatically unchecks the "Enable emoticons?" checkbox in the post options per default, thx
since the images especially for the common :) ;) and :P all pretty much suck, text is the way to go here

i second that ! :)

chopin

Hey man, Tetris is personal, so we should have personal backgrounds for our personal pages
Yes, new emoticons PLEASE. The ones on the Page comments are nice. Or my AIM ones are nice

coolmaninsano

Quote from: chopin
Yes, new emoticons PLEASE. The ones on the Page comments are nice. Or my AIM ones are nice
http://img191.imageshack.us/img191/7421/skdfj.png

Blink

#43
Emoticons are going to stay on the forums, but I'll change to a different emoticon set rather than the current default one.

Using this code caused the page to stop loading:
onclick="java script:if(!event.ctrlKey){window.location.href='http://harddrop.com/wiki/';}"

it just loaded a blank white page instead.

coolmaninsano

Err disregard my suggestion of halving the images/fumens in replies, instead it just shows the link and not the whole image/fumen/youtube.