Jump to content

scott100

Members
  • Posts

    1,819
  • Joined

  • Last visited

Everything posted by scott100

  1. Your iframe is sitting on top of the menu, use css z-index to make your menu sit on top of the iframe (think of z-index as giving your page layers - zero is the lowest and anything higher sits on top of it)in your iframe <iframe style="z-index: 0;" /> in your table styletable{font-size:11px;background:#ffffff;z-index: 1;}
  2. Webhosting, your top 10 sites?I personally think it would be the icing on the cake ifyou press the playbutton and you document.write('<bgsound src="song.mp3"')hit fastforward document.write('<bgsound src="song2.mp3"')etcYou wouldn't get that annoying mediaplayer pop up, just change the background sound, I think that would be wicked, it's an ipod after all give it some music plus it wouldn't play music automatically so those without broadband wouldn't suffer, just those whose choose to listen press play.
  3. I was just about to have a go at this then... nothing!!Put the menu back up or paste the code here so i/we can have a look
  4. scott100

    Site feedback

    Nice to see an original idea for a site, good thinking
  5. I wouldn't put a function inside another, that's just messy, try something like this <head><script type="text/javascript">function watchtree(a,b,c,d){ winter=a+b+c-d; winter=ball(winter); return winter;}function ball(winter){ z=winter+10; return(z);}</script></head><body><script type="text/javascript"> var result=watchtree(2,2,2,2); document.write(result);</script></body>
  6. @ smiles - look here for more info on character sets http://www.w3.org/TR/REC-html40/charset.html@ mahip - your font tristan is not a widely distributed font, that is why other pc's fail to recognise it, you could use a graphics program to save it as a jpg and upload that or i've heard of being able to upload fonts to a server, never used it though... check out this post.http://w3schools.invisionzone.com/index.ph...findpost&p=9037
  7. scott100

    Time to Design

    You could say i've got it easy just now, most of my work is done on my company's intranet and we use oracle 10g, i maintain dozens of pages but it's a piece of cake. You could easily get away with no HTML, CSS experience
  8. good question, lets view the source code and strip down what's happening.http://www.w3schools.com/HTML/tryit.asp?fi...me=tryhtml_fontThe whole section is built within a table, the box on the left is a textarea of a form, you make a change to the textarea and it is submitted to tryit_view.asp This tryit_view.asp must update a page that is then shown through an iframe on the right hand side.The key to exactly what happens when the form gets submitted to tryit_view.asp is a mystery though (one benefit of server side scirpting, nobody can pinch your code!)This is the relevant code from the link above<table width="100%" border="0" cellpadding="5" cellspacing="0"><form action="tryit_view.asp" method="post" target="view"><tr><td colspan="2"><input name="submit" type="submit" value="Edit the text and click me"></td></tr><tr><td width="50%"><textarea width="100%" height="400px" style="width:100%;height:400px" name="code" wrap="logical" rows="21" cols="42"><html><body><p><font size="2" face="Verdana">This is a paragraph.</font></p><p><font size="5" face="Times">This is another paragraph.</font></p></body></html></textarea></td><td><iframe width="100%" height="400px" style="width:100%;height:400px;background-color:ffffff" name="view" src="tryit_view.asp?filename=tryhtml_font"></iframe></td></tr><tr><th colspan="2" class="right" align="left">Edit the text above, and click on the button to see the result.</th></tr></form> </table>Hope this gives you some idea as to what's happening on the page
  9. They were made in asp, if you look at the url below you will see tryit.asp as opposed to tryit.htm - pages that have a extension like .asp or .php are processed by that engine on the server side. so if you look at the address bar for this site you see index.php, this forum is written with php.http://www.w3schools.com/HTML/tryit.asp?fi...me=tryhtml_font If you go to the link i gave above, right click on the page on the right hand side and go to properties, you will see an address url, copy that and then paste it into the browser address bar and click goi.e. http://www.w3schools.com/HTML/tryit_view.a...me=tryhtml_font
  10. This could be a problem, i have just the script You might be interested in what cookies a particular site has set on your computer or you might be coding your own page that writes cookies and need to check what has been written. In both cases this code is just what you are looking for because it will produce a list of all of the cookies that are accessible to the site to which the currently displayed page belongs. 1. save code below as display cookies.htm 2. open display cookies.htm in your browser 3. right click on the Display Cookies link and add it to your favorites or bookmarks option4. go to a site where a cookie is stored for you ie this one, click on favourites/bookmarks then Display Cookies and hey presto, all cookies the page holds on you are displayed.this is a really neat script also useful for debugging. njoy <a href="javascript:(function(){x=window.open();x.document.write('<ht'+'ml>\r<he'+'ad><title>Display Cookies</title></he'+'ad><bo'+'dy>');if (document.cookie == '') x.document.write('No Cookies Found'); else {thisCookie = document.cookie.split('; '); for (i=0; i<thisCookie.length; i++) {x.document.write(thisCookie[i] + '<br \/>');}}x.document.write('</bo'+'dy></ht'+'ml>');x.document.close();})()">Display Cookies</a></p>
  11. I just took out the code that wrote a new html page and replaced with document.bgColor=color;Works a treat now <title>Chapter 9 Exercise 5</title><script language="javascript"><!--function changeBgColor(list) {color = list.options[list.selectedIndex].valuedocument.bgColor=color;}--></script></head><body><form>Select a background color:<select name="colorList" onChange="changeBgColor(this)"><option selected value="red">Stop</option><option value="yellow">Caution</option><option value="green">Go</option></select></form></body>
  12. That wasnt a dig a you by the way, i think we were both replying to the same problem at the same time...
  13. ok document.bgColor is built into javascript for changing the background colour, you could simply say something like document.bgColor="blue";You are then using the DOM to access the value of document.list.colors.options, if you look at the code in the body, notice the use of names<form name="list"> <select name="colors"><option value="red">Red You are working your way down the document and accessing individual elements ie the form then the list then the option.[document.list.colors.selectedIndex] selectIndex is a javascript built in array used for accessing the values of a <select> tag.Hope this made sence
  14. scott100

    Link Help

    What about peer to peer, or does that require a program?
  15. Your code worked ok for me...you may need to put the following code all on the same line as opposed to two:document.bgColor=document.list.colors.options[document.list.colors.selectedIndex].value; <input type="button" value="Change Background color!" name="myButton" onClick="change()" /> Are you also asking what does the function do? It obtains the value of the option chosen from the select list ie blue, then changes the documents background to that colour.
  16. Your code should look like this, the image tags i gave you should go in the body, the rest should go into the <style> in the head section, see below:<html><head><style>body{ font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; text-align: center; color: #C70000; margin:0px 100px 0px 100px; background: #000 url('http://www.google.co.uk/intl/en_uk/images/logo.gif') no-repeat;}</style></head><body>hello<img src="http://w3schools.invisionzone.com/style_images/w3sbanner.gif" style="position:absolute;top:100px;left:100px" /><img src="http://eur.i1.yimg.com/eur.yimg.com/i/eu/hp/yuk1.gif" style="position:absolute;top:200px;left:200px" /><img src="http://img.dell.com/images/global/brand/ui/logo42.gif" style="position:absolute;top:300px;left:300px" /><img src="http://hp.msn.com/c/hotmail/hotmail77x19.gif" style="position:absolute;top:400px;left:400px" /></body></html>
  17. I fully support the idea of having a news section Could be very useful, for me anyway!
  18. That's only if you register it, which nobody ever does lol.I just uninstalled it, downloaded it again from the site above, had a quick muck about and saved an animated gif, didn't cost a penny.
  19. Have you tried using a browser other than IE, download FireFox and see if you can view the pages thenhttp://www.mozilla.com/firefox/
  20. yep, i just cut and paste from one of my pages, forgot to take "solid green" out!! A bit OTT there i think, the extra values didn't make a jot of difference to the file size
  21. Hi,This should do what you need, it will only open a new page once then after that will not work.<head><script>var showMe=true; //global variablefunction check(){if(showMe==true)window.open ('http://www.google.com', 'newwindow', config='height=500,width=600,toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, directories=yes, status=yes')showMe=false;}</script></head><body><img onclick="check()" name="boton" src="/pasarelatpv/img/gr_pagar.gif" style="border: 0px solid green" /></body>
  22. Try this code, you should use css to style your pages<img src="1.jpg" style="border: 0px solid green" />
  23. Hello trigun96 and welcome to the forums.You could do this in javascript as per otto's post but it's probably a bit much to take in for a beginner.I would recommend that you use a piece of software to do this istead to create flashing pictures aka animated gif's.http://www.mindworkshop.com/alchemy/gifcon.htmlIn the past i have used gif construction set professional, it's free to use and all you have to do is insert your pics and make them loop over.It's very easy
  24. Like most i have sat back and watched this boil over and think it's only fair to voice my opinion.I think that Jonas is helpful and some of his comments have been taken the wrong way. On the other hand i think that it's you eric who has been rude on many occasions on this forum. You seem to have a real attitude problem and a know it all approachA handful of recent postschildish behaviourhttp://w3schools.invisionzone.com/index.ph...wtopic=1979&hl=shouting at and disrespecting othershttp://w3schools.invisionzone.com/index.ph...opic=1957&st=15Blatantly trying to test a moderator and mock himhttp://w3schools.invisionzone.com/index.php?showtopic=2147In my opinion Jonas has no need to apologise to anyone and eric has a real cheek considering the way he has spoken to others here.
  25. Just give it time, none of us learned javascript etc overnight and i for one still have alot to learn.As aspnetguy said it's great that you have such ambition but you have to learn to crawl before you can walk.Start of with some simple projects to help you understand what the code can do for you then gradually increase the difficulty.
×
×
  • Create New...