callumacrae
-
Posts
89 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by callumacrae
-
-
There are a few problems with this code:All codevar cp=0;var duration=800;$(function(){ $('#webdesignerAnime p').css({'visibility': 'hidden'}); $fadethis = (function () { if(cp < $('#webdesignerAnime p').size()) { $('#webdesignerAnime p').eq(cp).css({'visibility': 'visible' , 'display': 'none'}).fadeIn( duration , function(){ $fadethis(); }); cp++; } }); $fadethis(); });
- The $fadethis variable is undeclared.
- Your lack of correct spacing makes the code very tricky to read. I initially thought that the $fadethis function was being called immediately inside the $fadethis function, which it isn't.
- Why have you begun your function name with a dollar sign? This isn't PHP. Sure, do it yourself in your own code, but don't confuse beginners by trying to get them to do it
- Why are you passing a function which calls $fadethis as a callback? Why not just pass $fadethis?
- Your line with logic in seems needlessly complicated, and also wrong. How are you hiding the old elements? I suspect you meant to .hide() the elements (which is easier than calling .css() manually), then call .eq(), and then fade the specific element in.
- Assuming the logic you implemented it correct, everything on the page will jump up a couple hundred pixels wfor a fraction of a second when slides change.
- There is no way to restart the powerpoint.
- User cannot manually advance the powerpoint, which would be nice.
- Why are you hiding the elements using .css()? This is what .hide() was designed for, and it is better at it.
-
You don't know what that phrase means, do you?What an idiot! AH by nature AH by name. -
Media would be an exception for the popups rule, but even then it would be better off without.Again, please learn what invasive means. You seem to be confused. I'm not.
-
No.
-
You shouldn't use double quotes for a string like that, that's ugly.Mind you, you shouldn't really have HTML in a string either.EDIT: yey ipb sucksOr if you want to do with double quotes$left .= "<div class=\"quotepost\"><div class=\"textdiv\"><q class=\"quotetext\">" . $row['quote'] . "</q></div><p class=\"quoteauthor\">-" . $row['author'] . "</p></div><br/>";
-
I get the impression that you don't know what invasive means and that you'd also happily use alert and prompt, light boxes are not popup windows, I'm not sure where you got that from, light boxes are also pretty invasive though, you shouldn't assume that your users will trust you, as a lot of your users won't and you want the website to work for them too, I don't have the memory of a goldfish but I still couldn't remember the beginning of your post when I got to the end of the post, please use sentences and try to not ramble.How can it be invasive, one pop-up, light-box is classed as a pop-up, you are restricted to the LB pop-up until you are finished with it and then close it, and it is used everywhere, and if you are on a trusted site, you would NOT associate spam with that site so you would enable it, its the new sites you have not visited before you should be wary of, even this site uses a pop-up for login screen, but it has fallback to login page, as for going from parent page to pop-up, usullay the pop would not usually contain info from which you would want to keep returning, unless you have memory of goldfish, and can't remember what you just seen. IF its important info, you usually get the option to print it! -
I once worked with a guy who could write any regular expression without a reference. I learned from him to always understate your regex abilities, or you will spend half your time writing regular expressions.
-
Please don't do this, though. Export it as images, and use JavaScript to switch between them. Gifs should not be used for this.
-
That's not JavaScript.
-
That sounds crazy invasive. What happens if I want to go to a different tab on the original window and then go back to the popup? Either way, it'll be ugly.I believe that Chrome blocks all popups by default, and doesn't notify the user. Even so, if something comes up saying "popup blocked", most users now just associate popups with spam and so don't tell it to open the popup.Not if you do it such a way that it remains at front until closed, you can also do it to restrict the number of windows at given time. pop-blocker usually come with option to allow pop-up on this site option, before blocking completely, depends how you set it up. -
You should never rely on popup windows. They are invasive, often confusing for the user (if their browser is full screen and the popup goes behind it, they have to mess about with windows to get it back), and if they're not blocked by a popup blocker - which a lot of people have enabled - they will often be ignored just because they're popups.
-
Oh. I guess that'll have to do, then. I'd prefer a dedicated BBCode, though.
-
Yep, this is a very good tutorial by the author of "Regular Expressions Cookbook". If you want to know literally everything about regular expressions, buy Mastering Regular Expressions. It will make your head hurt, though.This is a pretty good link: http://www.regular-expressions.info/ -
Whoops. I was trying to avoid the argument, must have skipped that post by accident.
-
Ah, my bad. I didn't test whether the first code sample actually worked, so I assumed that it must be the other way round and tested that. They both work for me. OP: What specifically isn't working, and in what browser? It's working for me.First offYou have written:border:2px solid blue;
It should be:
border:2px blue solid;
WRONG! If you want to help, try to get your facts straight otherwise your making a fool of your self arsehole. And i'm sorry but you seem to have the impression that i really care what you think, i can tell you that i don't!.
-
Hi, Please could an inline code BBCode be added to the forums? Just so that I can talk about the [c]document[/c] object without confusing people.
-
Please could you use the
BBCode? Your post is extremely tricky to read, and I don't understand what you're asking.
-
You have written:How do I add a border to a link? (I've tried many times!)Just: #'link' {border:}border:2px solid blue;
It should be:
border:2px blue solid;
Either help, or don't. You're making a fool of yourself.What??? stop talking double dutch. numpty. -
What? Define "more professional".
-
On 2/11/2013 at 6:37 AM, Ughur said:As i know WPI writed by javascript and there is a section that shows system informations.. offical site of WPI : [Old Link]
Is there? I can't see anything
-
Why would you want more information?
-
-moz-text-blink: none;
Irrelevant and confusing. It's not in the OPs original code.
-
Wow, seriously? Either answer OPs question properly, or don't answer it at all. Providing a long sample of code with a lot of irrelevant chunks will not help the OP, it will only confuse him or her.you need css similar to this, submenu UL set to position: absolute; and add a fixed width. With the LI you should remove padding and give it 100% width to stretch full width of UL, causing it to stake, make anchor elements block, and also 100% width.#mainNav li { float: left; /*padding-left: 21px;*/} #mainNav a { -moz-font-feature-settings: normal; -moz-font-language-override: normal; -moz-text-blink: none; -moz-text-decoration-color: -moz-use-text-color; -moz-text-decoration-line: none; -moz-text-decoration-style: solid; -x-system-font: none; color: #FFFFFF; display: block; /*added by dsonesuk*/ font-family: "ITCAvantGarde",Helvetica,Arial,sans-serif; font-size: 14px; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; padding-bottom: 0; padding-left: 20px; /* padding-left: 10px; amended by dsonesuk*/ padding-right: 20px; /*padding-right: 10px; amended by dsonesuk*/ padding-top: 0; width: 100%; /*added by dsonesuk*/} #mainNav ul ul { display: none; width: 300px; /*added by dsonesuk*/position:absolute; /*added by dsonesuk*/} #mainNav ul ul li { padding-left: 0 !important; width: 100%; /*added by dsonesuk*/ z-index: 999 !important;}
-
Set the background colour of each TD element to white when it is clicked, which will hide the image behind it. http://jsfiddle.net/paWv5/ - it'll need some work to get it to work in IE currently.
Links more professional?
in CSS
Posted