I have the code in html and svg, the work at the opera, nor work in Firefox, then I submit the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
			xml:lang="en" lang="en">
<head><title>Test Boxes</title>

<script type="text/javascript">
var svg;
var svgns="http://www.w3.org/2000/svg";
var g1,g2,g3;	// wrap,main,cont
var a1,b1,c1; // buttons

function rct(x,y,w,h,s,f)
	{
	var rc;
	rc=document.createElementNS(svgns,'rect');
	rc.setAttributeNS(svgns,"x",x);
	rc.setAttributeNS(svgns,"y",y);
	rc.setAttributeNS(svgns,"width",w);
	rc.setAttributeNS(svgns,"height",h);
	rc.setAttributeNS(svgns,"stroke",s);
	rc.setAttributeNS(svgns,"fill",f);
	return rc;
	}

function txt(id,x,y,msg)
	{
	var cc=document.createTextNode(msg);
	var tx=document.createElementNS(svgns,"text");
	tx.setAttributeNS(svgns,"id",id);
	tx.setAttributeNS(svgns,"x",x);
	tx.setAttributeNS(svgns,"y",y);
	tx.appendChild(cc);
	return tx;
	}

function doBox(id,par,x,y,w,h,s,f)
	{
	var grp,bx,tx,xt,yt;
	grp=document.createElementNS(svgns,"g");
	grp.setAttribute("id",id);
	bx=rct(x,y,w,h,s,f);
	xt=parseInt(x,10)+6+' ';
	yt=parseInt(y,10)+16+' ';
alert("DOBOX x,y="+xt+','+yt);
	tx=txt(null,xt,yt,id);
	grp.appendChild(bx);
	grp.appendChild(tx);
	par.appendChild(grp);
  return grp;
	}

function initSVG()
	{
	svg=document.createElementNS(svgns,'svg');
	svg.setAttributeNS(svgns,'width','250');
	svg.setAttributeNS(svgns,'height','190');
	svg.setAttributeNS(svgns,'version','1.1');
	document.body.appendChild(svg);
	return svg;
	}

function init(evt)
  {
  svg=initSVG();
alert("INIT svg="+svg);

  g1=doBox("wrap",svg,"10","10","230","170","#000","#999");
  g2=doBox("main",g1,"30","40","190","120","#000","#bbb");
  g3=doBox("cont",g2,"50","70","150","70","#000","#ddd");

  a1=doBox("A1",g3,"70","100","30","20","#000","#fff");
  b1=doBox("B1",g3,"110","100","30","20","#000","#fff");
  c1=doBox("C1",g3,"150","100","30","20","#000","#fff");
	}

</script>
</head>

<body onload="init()">
</body>
</html>

<?xml version="1.0" standalone="no"?>
<svg version="1.1" baseProfile="full"
		xmlns="http://www.w3.org/2000/svg"
		width="250"	height="250"
		onload="init(evt)">

<script type="text/javascript">
var svg;
var svgns="http://www.w3.org/2000/svg";
var g1,g2,g3;	// wrap,main,cont
var a1,b1,c1; // buttons

function rct(x,y,w,h,s,f)
	{
	var rc;
	rc=document.createElementNS(svgns,'rect');
	rc.setAttributeNS(svgns,"x",x);
	rc.setAttributeNS(svgns,"y",y);
	rc.setAttributeNS(svgns,"width",w);
	rc.setAttributeNS(svgns,"height",h);
	rc.setAttributeNS(svgns,"stroke",s);
	rc.setAttributeNS(svgns,"fill",f);
	return rc;
	}

function txt(id,x,y,msg)
	{
	var cc=document.createTextNode(msg);
	var tx=document.createElementNS(svgns,"text");
	tx.setAttributeNS(svgns,"id",id);
	tx.setAttributeNS(svgns,"x",x);
	tx.setAttributeNS(svgns,"y",y);
	tx.appendChild(cc);
	return tx;
	}

function doBox(id,par,x,y,w,h,s,f)
	{
	var grp,bx,tx,xt,yt;
	grp=document.createElementNS(svgns,"g");
	grp.setAttribute("id",id);
	bx=rct(x,y,w,h,s,f);
	xt=parseInt(x,10)+6+' ';
	yt=parseInt(y,10)+16+' ';
	tx=txt(null,xt,yt,id);
alert("DOBOX x,y="+xt+','+yt);
	grp.appendChild(bx);
	grp.appendChild(tx);
	par.appendChild(grp);
  return grp;
	}

function init(evt)
  {
	svg=evt.target.ownerDocument.documentElement;
alert("INIT svg="+svg);

  g1=doBox("wrap",svg,"10","10","230","170","#000","#999");
  g2=doBox("main",g1,"30","40","190","120","#000","#bbb");
  g3=doBox("cont",g2,"50","70","150","70","#000","#ddd");

  a1=doBox("A1",g3,"70","100","30","20","#000","#fff");
  b1=doBox("B1",g3,"110","100","30","20","#000","#fff");
  c1=doBox("C1",g3,"150","100","30","20","#000","#fff");
	}

</script>
</svg>

A good place to ask for advice on web development is to the 'Web Standards Development/evangelism' MozillaZine forum.

Aid to this forum are better informed on issues related to web development.

You must register on MozillaZine forum site to post in this forum.

Tags: Firefox

Similar Questions

  • I have a modal using html and css that opens very well.  However, given that modal is on layer 2 layer 1 objects fade out (gray out) in the background.  I can't put the modal on the top layer, so that it appears on all my pages.  It is specifi c that

    I have a modal using html and css that opens very well.  However, the modal is on layer 2 that the objects in the layer 1 fade out (gray out) in the background when the modal opens.

    I can't put the modal on the top layer, so that it appears on all my pages.  It is specific to the single page on my site.

    Here is the link: http://www.ueonline.com/website_NEW/certificationsapprovals.html#openModal

    Any help is appreciate!

    You can create a separate mask for this specific page with modal to the top layer and then apply that master page.

    Thank you

    Sanjit

  • My links in the html page do not work in Firefox.

    I made som links in the same page in HTML, and they do not work in Firefox, although they work fine in Internet Explorer. I tried everything on this page: https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems?esab=a & s = links + don % 27T + work + in + firefox & r = 19 & as = s

    This has been a problem for years. Why not in page anchor links work? I'm just using html with Wordpad to create my pages, not CSS.

    Rules of the House at the top of the page.

    <a href="#PCgen">Character generation</a>
    <a name="#PCgen"><center>
    	<img src="KFR0 images/buts/bar swordcloth.gif" width=500 height=80>
    </a></center>

    It would be in the correct manner. Clear the # and close this tag a name immediately.

     <a name="PCgen"></a> <center>
    	<img src="KFR0 images/buts/bar swordcloth.gif" width=500 height=80>
    </center> 
  • Why I can't javascript and flash to work in firefox 36.0.4?

    When I tried to log in to Adobe.com , I got an error saying that javascript must be enabled. The help topic, my javascript is activated. When I tried to listen to the new npr, he complained that I need the latest version of flash. I installed and it still does not work. Why can't just open firefox and make it work, as it does in Chrome? I do not have time or expertise necessary to reprogram firefox or my computer, could keep you it simple?

    Do you not see the Shockwave Flash plugin in ' Firefox/tools > Modules > Plugins '?

    You will normally see a Lego block icon to the to the left end of the address bar to activate the Flash plugin.

  • Adobe Edge animation glitching html and SVG page in the process of disappearance

    Hi all

    I'm having a problem with Adobe Edge animation that I do for a customer - I'm pretty new on board, so this may be an easy solution!

    There is a SVG named chassis (it looks like a Brown tadpole) that disappears in the middle of the animation - and glitches then the Web page by drawing a white background that spans all...

    I put the border for transparent background so I don't know why this is happening, it happens even in "Preview in browser" option.

    Here is the site where the animation is incorporated - http://louisreed.co.uk/tiddlybot (down a bit)

    For any help or suggestion welcome.

    Thank you!

    Louis

    Hi Louis,.

    We are aware of this problem and it happens on Chrome only. This issue is followed internally. Thanks for reporting this.

    Kind regards

    Soline

  • Muse is paste HTML and SVG elements not Illustrator

    Until recently could just copy and paste things in illustrator to muse as an 'Embedded SVG"and it was awesome. However for some reason, muse now only glue like HTML, eliminating the possibility of them to scale. Is there a setting I can change to make them stick again in SVG?

    Please see Re: I can paste vectors in muse now, he appears to listen to samples and even in a preview of the browser, but not when I'm downloading. >.

  • "When I load google calendar in Firefox, I get the message" cannot load events, try again later ". Works with IE and Chrome. Worked with Firefox.

    Open Google calendar using Firefox and found only the month of may display events. In the past, it displays dating back several years and moving forward about a year. Then, I got the following message ' Oops, we could not load your events, please try again in a few minutes calendar» I open my calendar Google Chrome and Internet Explorer and found each event displayed normally. I looked at all the blogs help and found no solution. Can you help me?

    I used two bookmarks and typed in the url. But fortunately the schedule began to fill all the events I started my computer for a closed complete. I did a restart earlier but it has not fixed the problem right then. Thanks for your help.

  • You use Firefox I can't connect in my forum. I have entered good username and password, but I am just represented with login. Works on IE8 or Crome and used to work on Firefox

    I use Windows 7, but also, this happened in my a/c Admin on Vista but was Ok on the regular user on the same computer account. Now I can't connect to my forum Admin or other a/c using Firefox 3.6.12

    Such behavior can be caused by corrupted cookies or cookies that are blocked by Firefox or an extension or blocked by security software (firewall).

    Clear the cache and cookies from sites that cause problems.

    • "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
    • 'Delete Cookies' sites causing problems: Tools > Options > privacy > Cookies: "show the Cookies".

    If clearing cookies doesn't help, then it is possible that the cookies.sqlite file that stores the cookies is corrupted.

    Rename (or delete) cookies.sqlite and cookies.txt, if they exist, in the profile folder in the cookies.sqlite case has been corrupted.

    If this does not help then make sure that your firewall is not blocking cookies.

  • Fingerprints of software updates is NOT up-to-date and does not work with Firefox 2.0.0.1

    Software version: Protector Suite QL v5.4 build 2668
    Firefox 2.0.0.1

    Symptom: now that Firefox 2.0.0.1 is installed, PS - QL fails to install correctly even if it is said that it has been correctly installed.

    Symptom: Every 20 seconds a new message pops up saying (approx.): ' FF is detected, you want to install although it is not tested, it should work! By clicking YES or NOT gives the same result - it is stuck in a loop. The pop - ups keep occurring even when FF or IE are not running. VERY irritating!

    Temporary solution:
    (1) I've disabled PS - QL (killed process)
    (2) I contacted UPEK, software is. They replied:
    "We have released new version of Protector Suite software. The latest version is 5.6, which supports Windows Vista, IE7, FF2 and much more. Please check the download pages for Toshiba and upgrade to a newer version. »
    (3) I went to the site above and Toshiba does NOT HAVE does the update available! UPEK replied as follows:
    "I can see our internal system, that Toshiba has already downloaded the latest version. Now it's finally upward to Toshiba, if and when he died. I don't know the reasons why it is not available for public download, this is the final version (not beta). It is a customized version and Toshiba only can distribute. Please contact Toshiba support.

    Toshiba updates did not worth to free them!

    And where is the support from Toshiba? There is no email - only this self-help forum.

    Hi Roger

    Sorry, but I think you're a little frustrated and you obviously don t understand what real problem there is. Do not be frustrated. All, to an explanation or a solution even.

    First of all if you need assistance, you can call Toshiba hotline in your country and try to learn more about your problem. For each European country, Toshiba has a web page where you can find information on phone numbers and info how to contact Toshiba. Unfortunately, it is not the same for each country and if you go to http://uk.computers.toshiba-europe.com the site of the left hand you will find the hotline number. Call them and explain what you want to know. I hope that you will be able to contact the right person.

    Back to the question of the utility! It is logical that the producer of software is most often one step as a producer for laptop and before the tool is provided for download, it must be tested. It seems that the software producer has new version that is created for Windows Vista, IE7 and FF2.0. As you know that Windows Vista is not officially released and thereby there is no new version of Vista available on the Toshiba download page. I'm 100% sure after Vista start new version will be available for download. You will see that the new laptop Vista pre-installed will have this new version.

    As far as I know official Vista launch term is end of January.

    By the way: it will be interesting to know what model of laptop and preinstalled OS you are using.

  • Find the files .html and .htm without a .dwt (model)

    I have a site with 1 933 .html and .htm files. 809 files 1 933 have a. tpl. This leaves 1 844 files with n. tpl. I want to give the files of 1844 a. tpl. To make sure that I'm clear, I have 1 844 files .html and .htm without a parent of the model. I would like to locate them and give them a parent. TPL. My question is, other than opening and looking at each of the 1933 files, how can I find these orphaned files?

    I found the best thing for me to do was a: 'Find and replace' research; "Search in: all current Local Site; "Search for: Source Code; "Find: ;" check "ignore white space /" and then "search everything".

    This will find all htm and html documents in the properties. Scroll through the list looking for something out of use. It is not as difficult as it sounds. For example, I had more than 2,000 listed documents. The majority of my documents should have httpdocs\sermons. Anything outside of this folder has become suspect. I found a folder that I downloaded in an attempt for the redesign of my site to reagent trying to meet the demand of mobile enjoyment of Google. The folder contained over a thousand documents not in the httpdocs\sermons folder. I deleted the entire folder. I did another search 'find and replace '. I've then easily accounted for all my documents.

    I keep thinking that there should be a way of locating documents not related by a .dwt (model).

    Murray and Nancy's O thanks for your time and knowledge.

  • I have installesd on my pc and then uninstalled pcmatic and now my pc is weird

    I'm under win 7 and norton 360, well last night I saw a commercial for pcmatic tv so I wanted to play and installed and ran a scan and it said I need to buy to fix what they said was bad... So I uninstalled it and now my PC seems to be acting weird, when I click on something the icons on my screen will be Flash, and when I use the firefox browser it will throw me in a site Web that I did not click on... and when I get to a website I wanted sometimes the screen will be black black and I have to click it again and it will work so well... it's totally weird... I ran a virus scan, norton 360 and gum them of power... and it only shows nothing... Someone at - it an idea? And yes I know I'm a beast * LOL

    Try a restore point for a period before you install this program

    All this 'SpeeedUpMyPc' type of programs are snake oil and should be avoided

  • How can you get an iTunes card code goes through which is stuck on a peel off sticker and I don't have the receipt for refund or Exchange

    How can I get a card code iTunes pass go throu that is stuck on a peel off sticker and I don't have the receipt for refund or Exchange

    You can try to contact iTunes support, they are likely to want to see images of the front and back of the card, and they might also want to see a picture of the reception (you looked for the reception?): https://www.apple.com/emea/support/itunes/contact.html

  • Have error code 0 x 80070020 then that he was trying to run backup... tried with security off the coast and still the same error message... solution?

    Have error code 0 x 80070020 then that he was trying to run backup... tried with security off the coast and still the same error message... solution?

    Hello

    make backups on an external hard drive or DVD

    see if this information helps you

    How to make a backup of your data (all Vista versions)

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

    the 1st link below is how do the backup complete pc (Vista, full and professional company)

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems with the repost of process above in forum microsoft link that is specific to the backup below questions

    "This forum supports questions for the default backup utility in Windows Vista, Server 2008 and beyond."

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • How can I download CS3 version 'later' and make it work on a newer computer? (I have the activation code that I bought in 2008)

    How can I download CS3 version 'later' and make it work on a newer computer? (I have the activation code that I bought in 2008)

    An idea that MAY work to install or run some programs in Windows 10 old... works for some, not for others

    -http://www.tenforums.com/tutorials/15523-compatibility-mode-settings-apps-change-windows-1 0 - a.html

    - or run as Administrator http://forums.adobe.com/thread/969395 to assign FULL permissions can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • I bought my program and I have the code for the product. Where I have to write this code?

    I bought my program and I have the code for the product. Where I have to write this code?

    Exactly, what program... and the version?

    You have a number or a redemption code?

    You enter a serial number when asked during the installation process

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    - and https://forums.adobe.com/thread/1572504

Maybe you are looking for

  • Debian Linux suggestions for Satellite M60-135

    Hello I would like to have a Linux Debian functional system as a main OS on my M60-135. So far, I have tried several Live CD and DVD:-4 debian itself-Knoppix to 5.2-Kanotix 2006-Sidux Chaos-Ubuntu and Kubuntu (the two 6.10)-Linux Mint 2.2 Also:-Fedor

  • My iCloud has been hacked... locks... ransom sought to unlock the PIN

    I was watching a great show on my iPad when it went all of a sudden in the mode lock with the message: *** Lost IPad Your device is locked.  To unlock email ********* *** My iPhone also presented the same message at the same time. But a few seconds l

  • Sub - VI front flashes instead of remain standing

    Hey all,. I read a scale data in a structure of producer/consumer. In the loop of consumer, I have the data feeding a Subvi with a special sign. I want to stay until I'm done and the face before showing when I run the program. However, he flashes at

  • How to get a list of the VI included in the executable

    The problem is mainly a matter of configuration of product version control and also potentially has a loss of performance. While VI and CTL lists (including dependencies) are completed, I can't find a reference to some of the VI, especially in the de

  • Will there be an alphanumeric screen on the Pixma MX-922? I see only letters

    IM currently linking my Pixma MX-922 with my password My FIOS network Verizon Wireless home a numbers and letters in the password. When I get to the screen when I enter the password, the screen only shows letters. How do I enter an alphanumeric passw