E
eholz1
Hello Javascript Group,
I have a couple of questions regarding use and implementation of
javascript and AJAX
for a web site, and page design. etc...
I have a web site that I am moving off of Front Page. I have created
an index.html page
that has some nice rollover buttons, using gif images for rollover,
click, etc.
These are links that allow the user to navigate the web site, and
there are 9 top level pages that all will have these buttons for user
navigation around the site.
I could copy the button code from the index page and put it on the
other 8 pages.
I am not keen on this idea, but it will work. I am used to using PHP,
CSS, and include files to "write" page elements in a div on a given
page (such as "buttons" created in CSS, with code associated with each
CSS element for navigation)
I would like to be able to use the same rollover buttons with their
links on each of the 8 pages using Javascript (like an include file)
to write the rollover buttons on each page.
PHP is easier in this respect, I have used echo statements in a php
page to write page elements (hyperlinks, tables, table rows, etc). I
have looked at using the DOM technique, document.createElement,
objTag.appendChild, etc. The code for the buttons was generated by
Dreamweaver, using gifs for rollover effects, etc. I am wondering if
this is the correct approach to add navigation elements to a web page,
and or should I implement some sort of XMLHttpRequest (ajax) to load
the "buttons" into the navigation div on the page.
Any tips or links to how to get a mile-long string of Dreamweaver code
into a DOM elements (a div in my case, with 9 p elements).
Thanks Very much,
eholz1
I have a couple of questions regarding use and implementation of
javascript and AJAX
for a web site, and page design. etc...
I have a web site that I am moving off of Front Page. I have created
an index.html page
that has some nice rollover buttons, using gif images for rollover,
click, etc.
These are links that allow the user to navigate the web site, and
there are 9 top level pages that all will have these buttons for user
navigation around the site.
I could copy the button code from the index page and put it on the
other 8 pages.
I am not keen on this idea, but it will work. I am used to using PHP,
CSS, and include files to "write" page elements in a div on a given
page (such as "buttons" created in CSS, with code associated with each
CSS element for navigation)
I would like to be able to use the same rollover buttons with their
links on each of the 8 pages using Javascript (like an include file)
to write the rollover buttons on each page.
PHP is easier in this respect, I have used echo statements in a php
page to write page elements (hyperlinks, tables, table rows, etc). I
have looked at using the DOM technique, document.createElement,
objTag.appendChild, etc. The code for the buttons was generated by
Dreamweaver, using gifs for rollover effects, etc. I am wondering if
this is the correct approach to add navigation elements to a web page,
and or should I implement some sort of XMLHttpRequest (ajax) to load
the "buttons" into the navigation div on the page.
Any tips or links to how to get a mile-long string of Dreamweaver code
into a DOM elements (a div in my case, with 9 p elements).
Thanks Very much,
eholz1