Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 08-11-09   #1 (permalink)
4.0 GHz
 
mojoopo's Avatar
 
intel nvidia

Join Date: Oct 2004
Location: Canada
Posts: 1,168

Rep: 28 mojoopo is acknowledged by some
Unique Rep: 25
FAQs Submitted: 1
Hardware Reviews: 1
Trader Rating: 1
Default HELP with css!!

i have an image that i put on the front page of my website, i already div tagged it and it displays exactly how and where i want it but i want to make it so that when you click on this image it will go to a specified link is it possible to do that in the css file here is the code so far:
Code:
#play{
    position:absolute;
    left:875px;
    top:25px;
    margin-right: 20px;
    margin-top: 20px;
    height: 150px;
    width: 150px;
    background-image: url(images/play.PNG);
}
__________________
3


System: The Build
CPU
Intel Core I7 920 D0 @ 4.2GHz
Motherboard
Asus P6T Deluxe V2
Memory
Mushkin HP3 1600Mh 6Gb
Graphics Card
2X GTX275 896MB
Hard Drive
WD Black 500GB
Sound Card
Onboard 7.1
Power Supply
750w Coarsair TX750
Case
Thermaltake Armour Jr.
CPU cooling
Scythe Mugen 2
GPU cooling
AC Xtreme 280
OS
Windowsw 7 Ultimate 64Bit
Monitor
Dynex 32Inch TV
mojoopo is offline   Reply With Quote
Old 08-13-09   #2 (permalink)
Overclocking Addict
 
Slider46's Avatar
 
intel nvidia

Join Date: Jul 2008
Location: Maryland, USA
Posts: 2,664

Rep: 330 Slider46 is a proven memberSlider46 is a proven memberSlider46 is a proven memberSlider46 is a proven member
Unique Rep: 248
Trader Rating: 23
Default

You would have to make an image button I believe. Then make the navigate URL whatever you want. Then you should be able to edit the button tag to use the "#play" class and that should transfer the formatting to the image button.

...I think

System: Gunmetal
CPU
Q9550 @ 4.0Ghz - 1.216 Vcore (8.0x) (E0 Stepping)
Motherboard
Gigabyte EP45-UD3L - 500 FSB - Danger Den NB Block
Memory
4GB OCZ Blade 1150 @ 1200mhz 5-5-5-15 (1.86v)
Graphics Card
EVGA GTX 260 (Core216) 55nm 896MB 759/1581/1285
Hard Drive
640GB AALS / 750GB AALS / 40GB External
Sound Card
Creative 7.1 with X-Fi Driver Mod
Power Supply
Corsair 520HX (Modular)
Case
Custom MDF Tech Station
CPU cooling
Danger Den MPC-CPU Quad Block / GTX 240 & GTX M184
GPU cooling
Bitspower Black Freezer VG-NGTX260C
OS
Vista Home Premium 64-bit
Monitor
22" Acer @ 1680 x 1050
Slider46 is offline Overclocked Account Slider46's Gallery   Reply With Quote
Old 08-13-09   #3 (permalink)
4.0 GHz
 
mojoopo's Avatar
 
intel nvidia

Join Date: Oct 2004
Location: Canada
Posts: 1,168

Rep: 28 mojoopo is acknowledged by some
Unique Rep: 25
FAQs Submitted: 1
Hardware Reviews: 1
Trader Rating: 1
Default

i figured it out this is what i did in the source file only and it worked perfectly:

Code:
<div id="play"><a href="http://sc3.soundcast.pl:8232/listen.pls"><img src="images/play.png" width="150" height="150" border="0" /></a></div>
__________________
3


System: The Build
CPU
Intel Core I7 920 D0 @ 4.2GHz
Motherboard
Asus P6T Deluxe V2
Memory
Mushkin HP3 1600Mh 6Gb
Graphics Card
2X GTX275 896MB
Hard Drive
WD Black 500GB
Sound Card
Onboard 7.1
Power Supply
750w Coarsair TX750
Case
Thermaltake Armour Jr.
CPU cooling
Scythe Mugen 2
GPU cooling
AC Xtreme 280
OS
Windowsw 7 Ultimate 64Bit
Monitor
Dynex 32Inch TV
mojoopo is offline   Reply With Quote
Old 08-18-09   #4 (permalink)
Audiophile
 
OpticWaves's Avatar
 
amd nvidia

Join Date: May 2008
Location: Spokane
Posts: 391

Rep: 17 OpticWaves Unknown
Unique Rep: 15
Trader Rating: 0
Default

You couldn't link it before because it was the background image. Make sure you use good descriptive alt tags with keywords (where appropriate) in the code for SEO purposes.
__________________
It's O.C. ROUND 2 for THE FOUNDRY !!1

CPU 3DMark06 Score - 4563
Total 3Mark06 Score - 13906

System: The Foundry
CPU
Phenom 9850 Black Edition Rev DR-B3
Motherboard
DFI Lanparty DK 790FX-M2RS
Memory
OCZ Reaper 2x2G DDR2 1066
Graphics Card
Evga 8800GT @ 60% Fans w/Precision
Hard Drive
WD 640GB 7200 RPM SATA 3.0Gb/s + 2x WD 80Gb IDE
Sound Card
Creative SoundBlaster Audigy 2 Platinum
Power Supply
PC Power & Cooling Silencer 610 EPS12V Single Rail
Case
Norco RPC 800 Rackmount - Minor Airflow Mods
CPU cooling
Zalman 9700 Horizontal Mounted w/Arctic Silver 5
GPU cooling
Stock Internal GPU fan
OS
Windows 7 x64 + x32 (x32 for Legacy Apps)
Monitor
2x LG FLATRON W2361V 23" LCD
OpticWaves is offline   Reply With Quote
Old 08-18-09   #5 (permalink)
Console Gamer
 
Madman340's Avatar
 
Join Date: May 2008
Posts: 409

Rep: 12 Madman340 Unknown
Unique Rep: 11
Trader Rating: 0
Default

Quote:
Originally Posted by OpticWaves View Post
You couldn't link it before because it was the background image. Make sure you use good descriptive alt tags with keywords (where appropriate) in the code for SEO purposes.
Actually, that would still work, all you would have to do is designate the DIV tag as the link instead of the image.
Madman340 is offline   Reply With Quote
Old 08-18-09   #6 (permalink)
Audiophile
 
OpticWaves's Avatar
 
amd nvidia

Join Date: May 2008
Location: Spokane
Posts: 391

Rep: 17 OpticWaves Unknown
Unique Rep: 15
Trader Rating: 0
Default

Quote:
Originally Posted by Madman340 View Post
Actually, that would still work, all you would have to do is designate the DIV tag as the link instead of the image.
That's tricky. I never even thought to try that . . .

I like it though for reducing the code. BUT, what about the keyword rich image alt tags? They would not be on the page, just the link anchor text.
__________________
It's O.C. ROUND 2 for THE FOUNDRY !!1

CPU 3DMark06 Score - 4563
Total 3Mark06 Score - 13906

System: The Foundry
CPU
Phenom 9850 Black Edition Rev DR-B3
Motherboard
DFI Lanparty DK 790FX-M2RS
Memory
OCZ Reaper 2x2G DDR2 1066
Graphics Card
Evga 8800GT @ 60% Fans w/Precision
Hard Drive
WD 640GB 7200 RPM SATA 3.0Gb/s + 2x WD 80Gb IDE
Sound Card
Creative SoundBlaster Audigy 2 Platinum
Power Supply
PC Power & Cooling Silencer 610 EPS12V Single Rail
Case
Norco RPC 800 Rackmount - Minor Airflow Mods
CPU cooling
Zalman 9700 Horizontal Mounted w/Arctic Silver 5
GPU cooling
Stock Internal GPU fan
OS
Windows 7 x64 + x32 (x32 for Legacy Apps)
Monitor
2x LG FLATRON W2361V 23" LCD
OpticWaves is offline   Reply With Quote
Old 08-18-09   #7 (permalink)
Console Gamer
 
Madman340's Avatar
 
Join Date: May 2008
Posts: 409

Rep: 12 Madman340 Unknown
Unique Rep: 11
Trader Rating: 0
Default

Well it's not really for random images, more for logos/footer images that don't really supply any potential SEO. I say logos because chances are your website name will already be #1 as long as it isn't a keyword based name.
Madman340 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 08:16 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12526 seconds with 8 queries