Search:
Type: Posts; User: Kovo88
Search:
Search took 0.05 seconds.
-
January 26th, 2010, 10:54 AM
On another note
If I have a function like so:
function hello($a, $b, $c)
{
//stuff here using $a, $b and $c, arrays, exploding etc...
}
none of the passed in variables would need to...
-
January 26th, 2010, 10:50 AM
Thanks, most of my functions dont exceed 5-10 lines of code...which confuses me more!
As for the memory usage, I use php for that:
round((memory_get_usage() /1024), 2)
and
...
-
January 26th, 2010, 10:40 AM
Those files just contain functions or classes, none of those functions or classes are even called at the time those files are loaded (they are called after) and there is little to no variables...
-
January 25th, 2010, 08:48 PM
Hello
Im building a browser based game (text and images)
I have a debugger/benchmark script that I run at every opage load which gives me various information. One thing it logs is script...
-
February 23rd, 2009, 12:42 AM
-
September 23rd, 2007, 06:26 PM
blixt, your script makes sense, but still does not help my code need.
I will give you the simplest example. I am making a button that will create a large chunk of html everytime it is clicked. The...
-
September 23rd, 2007, 09:46 AM
var headID = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';...
-
September 22nd, 2007, 09:53 PM
of course not!!! i said in theory, i just didnt want to create dummy css
-
September 22nd, 2007, 08:36 PM
-
September 21st, 2007, 04:54 PM
so if i wanted
if (document.createStyleSheet) {
var style = document.createStyleSheet();
style.addRule("div.content", "display: none; width: 500px;");
} else {
var head =...
-
September 21st, 2007, 04:36 PM
sorry peej, i just saw ur first reply :P
ok basically, i want my script to add styles on the fly after the page has loaded, so that related elements on the page would aquire the new styles.
-
September 21st, 2007, 04:34 PM
oh ok. because i want the script to write the style tags in the <head> tag, which is what I thought my script idea did, and of course, on one page, there is only one head tag.
thanks
-
September 21st, 2007, 03:39 PM
awesome guys, thanks a lot, but to be clear, my script idea
<script....>
var headtag = document.getElementsByTagName(head);
headtag.innerHTML += '<style>...</style>';
</script>
...
-
September 21st, 2007, 02:19 PM
ill be adding LOTS of stlyes to the head upon request of the function, the stlye names will be built from variables from the rest of the script, does ur suggestion still work?
And another quick...
-
September 21st, 2007, 10:28 AM
can I do this validly?
<script....>
var headtag = document.getElementsByTagName(head);
headtag.innerHTML += '<style>...</style>';
</script>
-
September 19th, 2007, 04:42 PM
if i do something like this:
<script type="text/javascript">
var theInteger = 0;
function addToDiv(){ var theDiv = document.getElementById('newContent');
theDiv.innerHTML += '<div...
-
September 19th, 2007, 04:15 PM
hey, another question. What if the inserted html code is very long... several lines. Ive noticed that the script breaks if I enter html with sveral lines. Is there a way around this?
thanks
-
September 19th, 2007, 01:26 PM
4get it, tested and it works, thanks
-
September 19th, 2007, 01:24 PM
but if i click on that button three times, will it reproduce the html 3 times or just replace it?
-
September 19th, 2007, 10:31 AM
to insert HTML onto a page on the fly or by request using ajax? Now, I dont mean import an external html file into a div, but I mean, literally import html code (predefined somewhere) and place it on...
-
September 17th, 2007, 09:14 PM
I need a function that will check a variables value and execute a function depending on the value. The value will always be either 0 or 1. If the variable is = to 0, then function 1 executes and...
-
September 14th, 2007, 03:35 PM
nice, ill email u once this project is up and running
-
September 14th, 2007, 08:13 AM
andreas, your script is exactly what I need and it works great... please give me ur name or website so that I may credit you for the script
Peej, thank you as well, i will use ur tips to improve...
-
September 14th, 2007, 12:47 AM
cool, to explain mor ein depth, I want this script to function like a screensaver for my site... so basically, it will pole mouse movement say ever 10 seconds. If there is no mouse movement for more...
-
September 14th, 2007, 12:14 AM
i know gmail does this, but how can iI use javascript to detect inactivity in a certain DIV for example then return a function or anything else?
|
Click Here to Expand Forum to Full Width
|