Jump to content

PrateekSaxena

Members
  • Posts

    584
  • Joined

  • Last visited

Posts posted by PrateekSaxena

  1. I dont think that it is suppose to be 2cm. try this code-

    <html><head><style type="text/css">p.leftmargin {margin-left: 2px}</style></head><body><p>This is a paragraph with no margin specified</p><p class="leftmargin">This is a paragraph with a specified left margin</p></body></html>

    Tryit Editor<html><head><style type="text/css">p.leftmargin {margin-left: 2px;}</style></head><body><p>This is a paragraph with no margin specified</p><p class="leftmargin">This is a paragraph with a specified left margin</p></body></html>

  2. Let us say that if it is a blog. then what you can do is that you can get the RSS feed of the blog by the xmlHttpRequest. then thru Js only you can search the XMl file for whatever search term you are working with then if there arer any positive results then just tell the guythe url of the post in which you found that word.

  3. Oh noooooooooooooo....aaahhh rames ... my eyes are burning....help me ..... frames are EVILBTW: Try specifying the border of the frame in the CSS

    frameset{  border-width:0px;}

    will this work??? :)

  4. Try writing this - I want to change the font color of my websites Header, I have found this code but it is way too small and I need to be able to make the font larger and the font different. Any ideas? I'm new(In case you couldn't tell !)This is the code I found:<HTML>

    <HEAD><TITLE> test</TITLE><script type="text/javascript">var font=new Array();font[0]="Arial";font[1]="Comic sans MS";font[2]="verdana";font[3]="tahoma";var colors=new Array();colors[0]="blue";colors[1]="green";colors[2]="red";colors[3]="gray";colors[4]="orange";colors[5]="aqua";colors[6]="brown";colors[7]="black";colors[8]="purple";colors[9]="chocolate";colors[10]="magenta";colors[11]="violet";colors[12]="indigo";colors[13]="sienna";colors[14]="yellow";var i=0;function writemess(){ if (i==15)i=0;document.getElementById('name').style.color=colors[i];document.getElementById('name').style.fontFace=font[i];i++;setTimeout('writemess()',200)}</script></HEAD><BODY onload="writemess()"><div id="name">test</div></BODY></HTML>

  5. I am trying to make some boxes and lines on my HTML page throught JavaScript. This is the HTML file -

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> gfx </TITLE><script src="gfx.js"></script></HEAD><BODY ><div id="me">I am a fool</div><script>initgraph(70,70,500,500, "white", "me");bar(10,10,100,1,"cyan","blue","box");xline(40,40,1000,"red","line1");</script></BODY></HTML>

    This is the gfx.js file that I have written -

    function initgraph(startx, starty, lenx, leny, bcolor, name){	here = document.getElementById(name);	here.innerHTML+='<div id="gfxLib" style="position:absolute; top:'+starty+'; left:'+startx+'; hieght:'+leny+'; width:'+lenx+';background-color:'+bcolor+'"></div>';	gfxLib.style.height= leny+'px';}function bar(startx, starty, lenx, leny, bcolor, bordercolor, name){	gfxLib.innerHTML+='<div id="'+name+'" style="position:absolute;border:solid; border-width:1px;"></div>';	ibar=document.getElementById(name);	ibar.style.top=starty+'px';	ibar.style.left=startx+'px';	ibar.style.height=leny+'px';	ibar.style.width=lenx+'px';	ibar.style.backgroundColor=bcolor;	ibar.style.borderColor=bordercolor;}function xline(startx, starty, len, bcolor,name){		gfxLib.innerHTML='<div id="'+name+'" style="position:absolute;padding:0px;margin:0px;height:1px;"></div>';	iline=document.getElementById(name);	iline.style.top=starty+'px';	iline.style.left=startx+'px';	iline.style.width=len+'px';	iline.style.backgroundColor=bcolor;	iline.style.height=1+'px';}

    but the problem is that even when I specifiy the height of the DIV as 1px still the height visible reamins around 10-20px. but it you make an alert to tell the height then it shows the height to be 1px only. could anyone please tell me what the problem is??

  6. Hey man try this out in the CSS of the <DIV> or the body -

    background: #FFFFFF url("img\page.PNG") repeat-y 50% 0;

    I think it should work.just change the color and the URL of the image

    spam

    You can just not show the email addresses of the people that are posting on the guestbook. Probably you could ask for the URL of there website and link there name to that URL

  7. Thankks....I will try it ourEDITThis is my Js file :

    function loadRTE(){	RTE.innerHTML="<div id='menu'></div><div id='buttons'></div><div id='tabs'></div><div id='work'></div><div id='footer'></div>";	work.innerHTML='<iframe id="iView" style="position:absolute;top:5px;left:155px;width:706px;height: 600px;"></iframe>';	iView.document.designMode = 'On'; }

    And this is my CSS:

    html,body{	padding: 0px;	margin: 0px;	background: #DCDCDC url("img\page.PNG") repeat-y 50% 0;	border: none ;	overflow: hidden ;}textarea{	border: none;	border-width: 0px;;}iframe { border-width: 0px; }

    And the grooves of the Textpart of the ifram are still not going :)

  8. I can get 1000 users everyday but they just dont clik. PLease suggest methods to increase my CTR. I would like to increase my CTR to 50%Which skool are you from? For which even did you come?

×
×
  • Create New...