![](http://content.invisioncic.com/r49260/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Chocolate570
-
Posts
1,550 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Chocolate570
-
-
-
See, the problem with your script is that it uses the += operater with innerHTML. += Makes javascript rewrite the innerHTML of an element, so the form element you just typed in has been replaced. :S
-
Hmm...well, what you could do is somehow put a filler element inside the border element. And then put a height=100% for it. Put a z-index of lower than the upper element, and what you should get is what you need
-
You can't do that. You'll get an error--it's a security problem. People don't want their HTML stolen of their site.
-
You can't do this with just plain javascript. You would need AJAX or server side scripting code (SSI, or server side includes) Check out the AJAX section of the W3Schools page.
-
From what I know, it's not possible with one element. What you coudl do is position 2 divs (on top of eachother). The first div would be 200 px high and x px wider on each side than the inner element--where x is how big the border should be. The second div should be the same, except more in height, and then you just change the background color to the color of your border.
-
No problem, and don't hesitate to ask for help.
-
I'm pretty sure the alias directive, after the first parameter, has an equal sign? Or not?Also, you should try chmoding your aliases---you're on a linux server, correct?
-
Please do not post the same topic twice. That falls under the category of spam. Thank you.
-
Even if you could, if you're planning to use them for a site, I doubt the owner/creator of the questions would let you use them.
-
Actually, that script works perfectly. May I ask what browser you're using? Firefox executes it fine.
-
I'll happily take up your offer for free
I do not use extra programs to code sites, and am proficient with photoshop. Just PM me with your contact details, and we'll have a chat. Choco
-
Googlebot, yahoo bot, ask jeeves, and one other thing that i can't remember regularaly visit this forum.
-
Well, it is kind of subliminal, but you basically learn it through reading the HTML and CSS tutorials on this site and going through other people's sources. But if you'd like a quick run down:ID's are suggested to be used only once in a page. ID's are used, in JavaScript, to reach an element through getElementById(). In CSS, ID's are used to format only 1 element with style sheets. They are set inside the tag, like this: <a href="" id="omg" title="" /> To select IDs in stylesheets, use this (if 'blah' is the id)#blah { property:value;}And that will format only that element. (remember the # sign)Classes are exactly like ID's, except they can be used multiple times over. To select a class, just use this:.blah { property:value;}And that will format all elements with 'blah' in their class= attribute. (note the '.')Hope that helps.
-
Oh, whoops! Try putting this on your XHTML page, and make sure you're using a browser that supports mathML.<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow>...</mrow></math>Edit:Ok, disregard that. MathML is way more complex than I had ever though. I've looked through some great articles and faqs, and here are a couple of links to better understand it. The W3C mathml example suite: http://www.w3.org/Math/testsuite/A great mathml article: http://72.14.209.104/search?q=cache:tzNeRj...lient=firefox-aMathML Browser Support: http://cnx.org/content/m10845/latest/I'll get you more links if I find any. :)Choco
-
Adding to the gradient thing.For those properties that have sub properties and for those people who want to be able to easily read the code without shorthand stuff, how bout property-sub hiearchies?For example,.specialA { gradient: { firCol=#blah secCol=#blah dir=vert or hont whatever=gjo }}No? It could be cool.
-
Hello,I don't really understand. Would this page be on your root? (domain.com/) Or is it another domain? If the last option, then it would be impossible to do this. You would get an error. Choco
-
Put the javascript part in the <head> section and the <a href=""> part wherever you want the link that opens the pop up to be.
-
Somehow, that seems like a huge scam. I'm sure no memory card company would make a card that would hold old pictures---it would take up too much space. That program probably wouldn't work. You can try it thought...you never know
-
Just use this code:<script type="text/javascript">function openWin(url) {window.open(url,"window","menubar=1,resizable=0,width=100,height=100");}</script><a href="#" onclick="openWin(yoururl)">Open new Window!</a>
-
Well, there's a great MathML reference right here:http://www.zvon.org/xxl/MathML/Output/index.htmlBut if it's just a straight line, then put the C inside a <span class="line">, and in the CSS, put this:.line {border-top: 1px color solid;border-bottom: 0px;border-right: 0px;border-left: 0px;}Hope that helps.
-
I doubt they'll be getting an error message. Probably whats happening is the script just isnt being activated in certain browsers due to the tricky if statement at the top.
-
Hello,It's ok. We've had camera discussions before, so this isn't too bad.Unfortunatley, unless your camera has a cache that stays with it forever, there will be no traces of the pictures on its memory card. Cameras usually do not have hard drives, so you can try going to a local camera store and asking if there's anything on your memory card. If there's not, i'm sorry, there's no way to retrieve the data. :)Choco
-
Could you ask your users what browsers they are using? I can see getElementById, which works in almost every browser. At least any of the ones that are pasts version .01 beta.
Replacing Body innerHTML
in JavaScript
Posted
I have a regular expression. Now what I want to do is execute the expression upon my document's body innerHTML. How would I do this in a crossbrowser way?I was going to use document.body.innerHTML, but this takes some time, and also is not supported accross all browsers. What to do?Thanks.Choco