[URG] Accessing some attributes | Need some ideas

wxdqz

New Member
Hi guys...
I've this products list.
When u click on any of them, its href (link) is opened in CENTDOW frame...


<span class="green">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.myweb.com/fichas/barebone/app2408.htm"
target="centdow"><strong>BAREBONE AMD/266/DDR</strong></a><br />
<a href="http://www.myweb.com/fichas/barebone/app2409.htm"
target="centdow"><strong>BAREBONE AMD/333/DDR</strong></a><br />
<a href="http://www.myweb.com/fichas/barebone/app2521.htm"
target="centdow"><strong>BOLSA BAREBONE</strong></a><br /></span>


This product list is loaded @ start, and i'd like to call a JS function when this list has been loaded.

a) <body onload="JavaScript:eek:peniteminframe(firstitemurl);">
AM I WRONG WITH THIS ?

b) This function (openiteminframe) should load automatically the 1?of the items in the CENTDOW frame.

So, when products list finished loading, the 1?item is shown in CENTDOW frame.

I can only modify product list, nothing else...

------------------------------------------

Does some1 have an idea about how to access 1篿tem's href property and pass that string to this function ?


function openiteminframe(url) {
window.top.frames.centdow.location = url;
}


I call to above function in a) ... ;) ...

-------------------------------------------

I thought of making an <span id=xx> for the first item, but i don't know how could i access to that span from openiteminframe function or anywhere

Sorry 4 making this so long.
Hope you have understood my idea...

Hope your help, coz tomorrow i gotta show this to my boss.

THANKS !!
 
Top