Recent Posts

Pages: 1 [2] 3 4 ... 9
11
JavaScript Operators / Re: BITWISE OPERATORS
« Last post by alone011 on October 18, 2017, 09:35:33 pm »
What are the advantages of using bitwise operations?
12
JavaScript Operators / Re: STRING OPERATORS
« Last post by alone011 on October 18, 2017, 09:35:13 pm »
What are the advantages of using bitwise operations?
13
JavaScript Operators / Re: STRING OPERATORS
« Last post by alone011 on October 18, 2017, 09:32:36 pm »
String literals take the forms:

'string text'
"string text"
"中文 español deutsch English हिन्दी العربية português বাংলা русский 日本語 ਪੰਜਾਬੀ 한국어 தமிழ் עברית"
Strings can also be created using the String global object directly:

String(thing)
14
CSS Fonts, Icons, Links / Re: CSS ICONS
« Last post by alone011 on October 18, 2017, 09:27:02 pm »
How To Create a Menu Icon????????????
15
JavaScript Operators / Re: ARITHMETIC OPERATORS
« Last post by alone011 on October 18, 2017, 09:19:54 pm »
It already exists; You can use the CSS3 calc() notation:

div {
    background: olive;
    height: 200px;
    width: 200px;
}

div > div {
    background: azure;
    height: calc(100% - 10px);
    width: 100px;
}
16
JavaScript Operators / Re: ASSIGNMENT OPERATORS
« Last post by Emary Echo on October 18, 2017, 09:05:55 pm »
Simple assignment operator which assigns a value to a variable. The assignment operation evaluates to the assigned value. Chaining the assignment operator is possible in order to assign a single value to multiple variables. See the example.
17
JavaScript Operators / Re: ARITHMETIC OPERATORS
« Last post by Emary Echo on October 18, 2017, 09:02:21 pm »
I want to know how can I achieve an arithmetic operation in CSS.

For example: I want to align two divs side by side each having width of 50% and I want to give border on these divs. I want to write my rule like this.

#container {
    width: 50% - 1px; // I know this does not work.
}
Why do browsers not support such arithmetic operations in CSS ?

And, How can I get this to work ?
18
JavaScript Operators / Re: STRING OPERATORS
« Last post by Emary Echo on October 18, 2017, 08:56:38 pm »
What is the difference between string concat and the + operator in java??

To March,

There's no difference in this particular case; however, they're not the same in general.

str1 += str2 is equivalent to doing the following:

str1 = new StringBuilder().append(str1).append(str2).toString();
To prove this to yourself, just make a simple method that takes two strings and +='s the first string to the second, then examine the disassembled bytecode.

By contrast, str1.concat(str2) simply makes a new string that's the concatenation of str1 and str2, which is less expensive for a small number of concatenated strings (but will lose to the first approach with a larger number).

Additionally, if str1 is null, notice that str1.concat(str2) throws a NPE, but str1 += str2 will simply treat str1 as if it were null without throwing an exception. (That is, it yields "null" concatenated with the value of str2. If str2 were, say, "foo", you would wind up with "nullfoo".)
19
CSS Fonts, Icons, Links / Re: CSS LINKS
« Last post by Emary Echo on October 18, 2017, 08:54:21 pm »
How do you put a link in CSS??

Hi!!!! March
Steps:

 Attach following code to your image/link/button which would be clicked to launch chat widget, following attaches javascript to a html-link (which can wrap an image or icon -- button)
//to attach to a html link
<a href="javascript:$zopim.livechat.window.show();">
<img src="yourbutton.png" alt="Chat Button" />
</a>
Add following in your JavaScript code (General > Customize Design > JS). This code hides the chat widget, so it doesn't show up by default on page load.
$zopim(function() {
$zopim.livechat.hideAll();
});
  hope this can help  :)
20
CSS Fonts, Icons, Links / Re: CSS LINKS
« Last post by aireenrosas on October 18, 2017, 08:41:55 pm »
what are the first browser version that fully supports the selector?

see at the images....
Pages: 1 [2] 3 4 ... 9