RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
[PHP/JS] Passing var's in from PHP to JS?
RichardRotterdam replied to Full-Demon's topic in Javascript Help
that does work. this works fine with me <script> var phpVar="<?php echo($phpVar);?>"; </script> why not paste your js in your head? otherwise you could use ajax to get the php var -
Just post the HTML code thats way easier to understand then explaining it in words. The thing with the dreamweaver generated code is that i can create some bad code I think that is what happened rather then firefox screwing up. Thats why I build my HTML layouts by writing the code myself
-
you could use a iframe or frame to put a site in it and then read the iframe on the mainpage with javascript
-
Restricting Browsers using Javascript
RichardRotterdam replied to proxximo's topic in Javascript Help
I kinda hate the browser restriction thing for sites that demand IE i use user agent switcher for firefox to decieve these sites -
Hmm i believe that the costumization only works for IE though so i wouldn't use it anyway I say screw IE
-
[SOLVED] switching buttons on screen
RichardRotterdam replied to stockton's topic in Javascript Help
You want a button the dynamically appears on your html page without refreshing am i correct? you should google for javascript DOM and especially the function getElementById().innerHTML function -
Weird I think it is possible to have both vb scripts as javascripts running if I am correct you can even call a vb function with javascript. Do you get a error message? And is converting the VB to javascript an option?
-
you run a database without a server 0.o ?
-
For that I noticed some td elements you styled using css like: <td width="100%" height="7" style="background: url(Images/linetopbottom.jpg) repeat-x;"> while the corners you just place a image tag inside <td width="7" height="8" > <img border="0" src="Images/toprightcorner.jpg"> </td> Just style it all using CSS that should solve the spacing problem
-
yeah your right guess thats what you get for using too much tables try to remove the footer table and place the following code instead <table cellpadding="0" cellspacing="0" border="0" align="center" style="font-size: 11px; background: url(Images/footerbackground.gif) bottom repeat-x;" valign="top" width="100%" height="53"> <tr> <td height="100%" width="100%" border="0"> <style> #footer_left{ background: url('Images/footeranime.gif'); width:400px; height:194px; float:left; } #footer_right{ width:400px; height:194px; float:left; } #copyright{ margin-top:100px; } </style> <div> <div id="footer_left"> </div> <div id="footer_right"> <div id="copyright"> <a href="termsofuse.html" target="_blank"> Terms of Use</a> - <a href="privacypolicy.html" target="_blank">Privacy Policy </a> -- Copyright Anime Blog Site © 2007 <div> </div> </div> </td> </tr> </table>
-
Uhm hmmmm, The problem is echo $test; why just not remove it then so you dont have the error. Or do you want echo $test; to do something with the class?
-
Well you need to do a couple of things. 1)you will need to set up the the correct tables for you database. 2)you will need the correct sql querries to retrieve the data(I recommend mysql or postgress for your database because ms acces is just terrible) 3)create your php code that will show your data in HTML. if you allready have some of this post your code so others can help you out
-
I have a little example that can help you out be sure to give the "id" attibute to your image tag <style> #footer_image{ /*this what firefox will do*/ margin-top:100px!important; /*this is what IE will do*/ margin-top:10px; } </style> <img id="footer_image" src="http://www.topgamingteam.net/Images/footeranime.gif" />
-
moo or prototype can make javascripting easier if you take time to understand these frameworks but I am pretty sure you can solve it without using one of them
-
what usually helps is put a random number behind the url you are requesting this prevents a page from being cached
-
hi try this function to get the variable in the url function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } }
-
in your $findTop5 query try to use a right join while preforming a select on both highscores and members2. a natural join might work good to not sure though
-
I see you use mysql. you could use the LIMIT function in mysql look up some info on that
-
you could try to use the absolute in css #add{ position:absolute; } or just create a good template with space for your add
-
I marked what you did wrong in red <input type=image img src=images/Delete.png> <onclick="DeleteMessage(<?php echo $intID ?>)"> I suggest next time you check your browsers source so you will see how it is generated without php code and btw what is the use of using an input if you are using an image seems pretty useless the second option seems more correct
-
need help withthe mootools framework
RichardRotterdam replied to gibigbig's topic in Javascript Help
How do you need help with it? The documentation worked fine with me. -
it all depends on what the javascript is supose to do. Mostly i place it in the head. But if the javascript call needs to be done on a certain html section that is located on the bottom you can place it lower.
-
Could you just send the code as it is shown as source in the browser php code wont help you much but source code as it appears in the client will
-
Form where inputted values self-add and new total shows
RichardRotterdam replied to Chappers's topic in HTML Help
with plain html you won't accomplish much you will need javascript to do this