Monday, May 24, 2010

. web development question?

yours truly knows rudimentary HTML %26amp; CSS ...








problem:





how to, *auomagically*, grab and display (to web surfers,)


the URL of the page (mine) they are surfing ?





i develop/maintain hundreds of web pages;


so it is not practical for me to enter/update the name of each %26amp; every such web page.





would pefer a generic code snippet that i cut and paste to the top


of every page's body


(or even to every pages's title/head;


but that request would border on dreaming or pushing my luck)





i read things i could not fathom/syntehsize, like:





htmlwrite


document.getelement


-


help much appreciated


and happy holidays !

. web development question?
You should get into PHP. That way you can "save" your page in a database and call it when necessary. You put the same code on every page and if you need to change your page, you change it in the database and it will change everything.
Reply:%26lt;script type="text/javascript" language="Javascript"%26gt;


document.write(document.URL);


%26lt;/script%26gt;





That will print the link at the top of the page. Put it anywhere in the body section and it will spit it out.





-Kerry
Reply:%26lt;html%26gt;


%26lt;/quit%26gt;


%26lt;/html%26gt;











Oh boy...idk. I took a hard code class last year, but it was just the basic stuff. I forgot everything.

wild flowers

No comments:

Post a Comment